From: Damien Lespiau Date: Tue, 12 May 2015 15:13:17 +0000 (+0100) Subject: drm/i915/skl: Support the advertized index format X-Git-Tag: firefly_0821_release~176^2~1490^2~90 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d161cf7a6e7e2a134e0f0b393c197e5eb8554a97;p=firefly-linux-kernel-4.4.55.git drm/i915/skl: Support the advertized index format We advertize C8 in the primary plane formats didn't have the corresponding code to set PLANE_CTL accordingly. Signed-off-by: Damien Lespiau Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 49d722795ab7..dadb52a4c26c 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -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;