Patchwork [3.5.y.z,extended,stable] Patch "drm: Fill depth/bits_per_pixel for C8 format" has been added to staging queue

mail settings
Submitter Luis Henriques
Date Feb. 28, 2013, 11:58 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/223922/
State New
Headers show


Luis Henriques - Feb. 28, 2013, 11:58 a.m.
This is a note to let you know that I have just added a patch titled

    drm: Fill depth/bits_per_pixel for C8 format

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 68ba83b32333498b5eeb945a275b6a33d46a2012 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <>
Date: Thu, 31 Jan 2013 19:43:37 +0200
Subject: [PATCH] drm: Fill depth/bits_per_pixel for C8 format
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

commit c51a6bc5f6d328926a9a4a1247c5030faf190a80 upstream.

Set depth/bits_per_pixel to 8 for C8 format.

Signed-off-by: Ville Syrjälä <>
Acked-by: Dave Airlie <>
Signed-off-by: Daniel Vetter <>
Signed-off-by: Luis Henriques <>
 drivers/gpu/drm/drm_crtc.c | 1 +
 1 file changed, 1 insertion(+)



diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index af81f77..2ca9737 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -3633,6 +3633,7 @@  void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth,
 			  int *bpp)
 	switch (format) {
+	case DRM_FORMAT_C8:
 	case DRM_FORMAT_RGB332:
 	case DRM_FORMAT_BGR233:
 		*depth = 8;