drm/i915: Relocate SKL+ NV12 src width w/a
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 18 Oct 2018 19:59:20 +0000 (22:59 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 23 Oct 2018 15:25:47 +0000 (18:25 +0300)
commit1f6f92a3d50faeeaefb4bacc25fad2bc75db7db9
treec0a37c1f16b3d0aa58e5a6a2ddea0a316daccd9e
parentcd956bfcd0f58d20485ac0a785415f7d9327a95f
drm/i915: Relocate SKL+ NV12 src width w/a

The SKL+ NV12 src width alignment w/a is still living in an odd place.
Everything else was already relocated closer to the main plane check
function. Move this workaround as well.

As a bonus we avoid the funky rotated vs. not mess with the src
coordinates as this now gets checked before we rotate the coordinates.

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