summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-01-31 18:43:37 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-02-20 00:21:43 +0100
commitc51a6bc5f6d328926a9a4a1247c5030faf190a80 (patch)
tree7e44222c8f3e94d59c6988d42401f0b6cf650e69 /drivers/gpu/drm/drm_crtc.c
parentdrm/i915: don't clflush gem objects in stolen memory (diff)
downloadlinux-c51a6bc5f6d328926a9a4a1247c5030faf190a80.tar.xz
linux-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>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-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 9c797f6fea75..ff7344cc6db2 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;