drm/i915: Fix 90/270 degree rotated RGB565 src coord checks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 28 Feb 2020 16:05:23 +0000 (18:05 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 2 Mar 2020 14:22:28 +0000 (16:22 +0200)
commitdea2ecd12bf77043e5b87b675950864c52a3a9bf
tree6a13e992d49cdc4e04152d65bd05b252c3a617d0
parent0dd5b13315fd57976f4cde050c1e763aba2ffdcf
drm/i915: Fix 90/270 degree rotated RGB565 src coord checks

Supposedly both src coordinates have to even when doing 90/270
degree rotation with RGB565. This is definitely true for the
X coordinate (we just get a black screen when it is odd). My
experiments didn't show any misbehaviour with an odd
Y coordinate, but let's trust the spec and reject that one
as well.

v2: Ignore ccs hsub/vsub
v3: Clarify the CCS special (Maarten)
    Deal with tgl+ CCS modifiers where we
    do need to look at hsub/vsub

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> #v2
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200228160523.1064-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_sprite.c