]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915/skl+: Add YUV pixel format in Capability list
authorKumar, Mahesh <mahesh1.kumar@intel.com>
Thu, 3 Sep 2015 10:47:09 +0000 (16:17 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Sep 2015 07:38:38 +0000 (09:38 +0200)
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 <mahesh1.kumar@intel.com>
Cc: Konduru, Chandra <chandra.konduru@intel.com>
Reviewed-by: Sonika Jindal <sonika.jindal@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index 888175c353f1b1945ccdd6a7f43f7a6d72355c6a..6985f6f3d055412526fb0761f7bfc5eb26af97dd 100644 (file)
@@ -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 */