]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix 90/270 rotated coordinates for FBC
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 31 Mar 2017 18:00:56 +0000 (21:00 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 7 Jun 2017 13:32:09 +0000 (16:32 +0300)
commit02165e354e7b25ead359ef81663ea22e63f39c99
tree9a011745fa1b0c26b352b133b92f81f84efc507c
parent5ca399612485925fbd8a7a350090bfe6986a3b78
drm/i915: Fix 90/270 rotated coordinates for FBC

The clipped src coordinates have already been rotated by 270 degrees for
when the plane rotation is 90/270 degrees, hence the FBC code should no
longer swap the width and height.

Cc: stable@vger.kernel.org
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Fixes: ccacbfbc2ea9 ("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-4-ville.syrjala@linux.intel.com
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Tested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
(cherry picked from commit 73714c05df97d7527e7eaaa771472ef2ede46fa3)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_fbc.c