drm/i915/skl+: Check for supported plane configuration in Interlace mode
authorMahesh Kumar <mahesh1.kumar@intel.com>
Fri, 30 Jun 2017 12:10:59 +0000 (17:40 +0530)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 4 Jul 2017 13:52:30 +0000 (16:52 +0300)
commit11f489d3c62b1e55efbc5f1ab058d85851a96d0e
tree1df8d3e57764bd824032a5c27908a38e8f2301c4
parent15727ed0d944ce1dec8b9e1082dd3df29a0fdf44
drm/i915/skl+: Check for supported plane configuration in Interlace mode

In Gen9 platform Interlaced fetch mode doesn't support following plane
configuration:
 - Y/Yf tiling
 - 90/270 rotation
 - YUV420 hybrid planar source pixel formats.

This patch adds check to fail the flip if any of the above configuration
is requested.

Changes since V1:
 - handle checks in intel_plane_atomic_check_with_state (ville)
 - takeout plane scaler checks combile with pipe scaler in next patch
Changes since V2:
 - No need to check for NV12 as it need scaling, so it will be rejected
   by scaling check (ville)

Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170630121100.20159-2-mahesh1.kumar@intel.com
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90238
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_atomic_plane.c