drm: Fill depth/bits_per_pixel for C8 format
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 31 Jan 2013 17:43:37 +0000 (19:43 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 19 Feb 2013 23:21:43 +0000 (00:21 +0100)
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>
drivers/gpu/drm/drm_crtc.c

index 9c797f6fea75118d17104586640754db4f6ce46e..ff7344cc6db2487c0b509e52a657a8f1f98f2de1 100644 (file)
@@ -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;