drm/i915: Force planar YUV coordinates to be a multiple of 2, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 20 Sep 2018 10:27:11 +0000 (12:27 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 21 Sep 2018 17:30:54 +0000 (19:30 +0200)
commit945ac78928faab3de7919f0f3135240db5c514c7
tree515da46e6eb5a391705ad7dc92ab2a64c66ffca0
parentab5c60bf76755d24ae8de5c1c6ac594934656ace
drm/i915: Force planar YUV coordinates to be a multiple of 2, v2.

We can't make NV12 work any other way. The scaler doesn't handle odd
coordinates well, and we will get visual corruption on the screen.

Changes since v1:
- Put the check in intel_plane_check_src_coordinates. (Ville)

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180920102711.4184-9-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/intel_sprite.c