]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix SKL+ watermarks for 90/270 rotation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 31 Mar 2017 18:00:55 +0000 (21:00 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Jun 2017 16:29:30 +0000 (19:29 +0300)
commitb07c8ca8869e3005f04f25952ab353fe67c1de04
tree9f97eba4051b1043303a1b1b8ea4a3734072987b
parent874160bc8f6b7ecd7a5edd43e7067a6f30d5f120
drm/i915: Fix SKL+ watermarks for 90/270 rotation

skl_check_plane_surface() already rotates the clipped plane source
coordinates to match the scanout direction because that's the way
the GTT mapping is set up. Thus we no longer need to rotate the
coordinates in the watermark code.

For cursors we use the non-clipped coordinates which are not rotated
appropriately, but that doesn't actually matter since cursors don't
even support 90/270 degree rotation.

v2: Resolve conflicts from SKL+ wm rework

Cc: stable@vger.kernel.org
Cc: 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-3-ville.syrjala@linux.intel.com
Tested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_pm.c