summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-01-31 19:43:37 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-02-20 00:21:43 +0100
commitc51a6bc5f6d328926a9a4a1247c5030faf190a80 (patch)
tree7e44222c8f3e94d59c6988d42401f0b6cf650e69
parent769ce4643b775496166d09c227b070cc38f9e205 (diff)
downloadlinux-3.10-c51a6bc5f6d328926a9a4a1247c5030faf190a80.tar.gz
linux-3.10-c51a6bc5f6d328926a9a4a1247c5030faf190a80.tar.bz2
linux-3.10-c51a6bc5f6d328926a9a4a1247c5030faf190a80.zip
drm: Fill depth/bits_per_pixel for C8 format
Set depth/bits_per_pixel to 8 for C8 format. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Acked-by: Dave Airlie <airlied@gmail.com> Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/drm_crtc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 9c797f6fea7..ff7344cc6db 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -3856,6 +3856,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;