]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix scaling check for 90/270 degree plane rotation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 8 Jun 2017 14:40:01 +0000 (17:40 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 13 Jun 2017 07:53:38 +0000 (10:53 +0300)
commit4c4d8e2578edaf31e7f9acad6ab719cdf4f8770b
treea7af6098897d9e94b8f9300940e07df4c4d01a81
parent053478a879d207005c44d5350d69112f900aa9c0
drm/i915: Fix scaling check for 90/270 degree plane rotation

Starting from commit f030b415ec55 ("drm/i915: Compute display surface
offset in the plane check hook for SKL+") we've already rotated the src
coordinates by 270 degrees by the time we check if a scaler is needed
or not, so we must not account for the rotation a second time.
Previously we did these steps in the opposite order and hence the
scaler check had to deal with rotation itself. The double rotation
handling causes us to enable a scaler pretty much every time 90/270
degree plane rotation is requested, leading to fuzzier fonts and whatnot.

v2: s/unsigned/unsigned int/ to appease checkpatch
v3: s/DRM_ROTATE_0/DRM_MODE_ROTATE_0/

Cc: stable@vger.kernel.org
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reported-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Tested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Fixes: f030b415ec55 ("drm/i915: Compute display surface offset in the plane check hook for SKL+")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170331180056.14086-2-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
(cherry picked from commit d96a7d2adb040a67e163a82dad6316f9f572498a)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170608144002.1605-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c