]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix SKL+ watermarks for 90/270 rotation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 8 Jun 2017 14:40:02 +0000 (17:40 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 13 Jun 2017 07:53:43 +0000 (10:53 +0300)
commitbfb8276b6d8b559ca6eaedebce06cb4878ad7e11
tree3ec39f1d26eb7224e992620deb3ca33d10057cf4
parent4c4d8e2578edaf31e7f9acad6ab719cdf4f8770b
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>
(cherry picked from commit fce5adf568abb1e8264d677156e2e0deb529194d)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170608144002.1605-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c