From: Kumar, Mahesh Date: Thu, 3 Sep 2015 10:47:09 +0000 (+0530) Subject: drm/i915/skl+: Add YUV pixel format in Capability list X-Git-Tag: KARO-TX6UL-2015-11-03~85^2~19^2~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ea916ea057299f66e774c9131e269df070a84779;p=karo-tx-linux.git drm/i915/skl+: Add YUV pixel format in Capability list GEN >= 9 supports YUV format for all planes, but it's not exported in Capability list of primary plane. Add YUV formats in skl_primary_formats list. Testcase: igt/kms_universal_plane.c Signed-off-by: Kumar, Mahesh Cc: Konduru, Chandra Reviewed-by: Sonika Jindal Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 888175c353f1..6985f6f3d055 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -72,6 +72,10 @@ static const uint32_t skl_primary_formats[] = { DRM_FORMAT_ABGR8888, DRM_FORMAT_XRGB2101010, DRM_FORMAT_XBGR2101010, + DRM_FORMAT_YUYV, + DRM_FORMAT_YVYU, + DRM_FORMAT_UYVY, + DRM_FORMAT_VYUY, }; /* Cursor formats */