]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix SKL cursor watermarks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 14 Mar 2017 15:10:50 +0000 (17:10 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Mar 2017 20:04:50 +0000 (22:04 +0200)
commit5466596599e3d2a4dc1f37c12b8f9688139baa48
tree351643e2a54c07b88a20232d67e54c49a2ae16ae
parentea5a58607a09a76f2ad57cc282fb56c208021248
drm/i915: Fix SKL cursor watermarks

Use intel_wm_plane_visible() to determine cursor visibility for SKL+
also. Previously SKL+ would check the actual visibility which now
conflicts with the assumptions in intel_legacy_cursor_update().

We also change SKL+ to compute the cursor watermarks based on the
unclipped cursor size, just as we do on all the other platforms.
Using the clipped size could now result in garbage results.

Testcase: igt/kms_chv_cursor_fail
Fixes: ad68989fc980 ("drm/i915: Fix legacy cursor vs. watermarks for ILK-BDW")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100195
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170314151050.12194-2-ville.syrjala@linux.intel.com
Tested-by: Dorota Czaplejewicz <dorota.czaplejewicz@collabora.co.uk>
Tested-by: Jari Tahvanainen <jari.tahvanainen@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
drivers/gpu/drm/i915/intel_pm.c