drm/i915: Fix 90/270 rotated coordinates for FBC
authorVille Syrjälä <[email protected]>
Fri, 31 Mar 2017 18:00:56 +0000 (21:00 +0300)
committerVille Syrjälä <[email protected]>
Tue, 6 Jun 2017 16:31:28 +0000 (19:31 +0300)
commit73714c05df97d7527e7eaaa771472ef2ede46fa3
tree2053ef2aae115d34140f2a02bfbd42ace7359197
parentfce5adf568abb1e8264d677156e2e0deb529194d
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: [email protected]
Cc: Tvrtko Ursulin <[email protected]>
Cc: Paulo Zanoni <[email protected]>
Fixes: b63a16f6cd89 ("drm/i915: Compute display surface offset in the plane check hook for SKL+")
Signed-off-by: Ville Syrjälä <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Paulo Zanoni <[email protected]>
Tested-by: Tvrtko Ursulin <[email protected]>
Reviewed-by: Maarten Lankhorst <[email protected]>
drivers/gpu/drm/i915/intel_fbc.c