summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorVille Syrjälä2017-03-31 20:00:54 +0200
committerVille Syrjälä2017-06-06 18:08:04 +0200
commitd96a7d2adb040a67e163a82dad6316f9f572498a (patch)
tree18c173e6819df734b25ebe0b527cf7664357eeca /drivers/gpu/drm/i915/intel_pm.c
parentdrm/i915: Restore has_fbc=1 for ILK-M (diff)
downloadkernel-qcow2-linux-d96a7d2adb040a67e163a82dad6316f9f572498a.tar.gz
kernel-qcow2-linux-d96a7d2adb040a67e163a82dad6316f9f572498a.tar.xz
kernel-qcow2-linux-d96a7d2adb040a67e163a82dad6316f9f572498a.zip
drm/i915: Fix scaling check for 90/270 degree plane rotation
Starting from commit b63a16f6cd89 ("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: b63a16f6cd89 ("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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
0 files changed, 0 insertions, 0 deletions