drm/i915/skl: Support the advertized index format
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 12 May 2015 15:13:17 +0000 (16:13 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 May 2015 09:25:54 +0000 (11:25 +0200)
We advertize C8 in the primary plane formats didn't have the
corresponding code to set PLANE_CTL accordingly.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index 49d722795ab7d8ac9019cc9b8fc77584a1e43a59..dadb52a4c26c3afc127ff15626799be605a028c9 100644 (file)
@@ -2956,6 +2956,9 @@ u32 skl_plane_ctl_format(uint32_t pixel_format)
        u32 format = 0;
 
        switch (pixel_format) {
+       case DRM_FORMAT_C8:
+               format = PLANE_CTL_FORMAT_INDEXED;
+               break;
        case DRM_FORMAT_RGB565:
                format = PLANE_CTL_FORMAT_RGB_565;
                break;