]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extract intel_wm_plane_visible()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 14 Mar 2017 15:10:49 +0000 (17:10 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Mar 2017 20:04:50 +0000 (22:04 +0200)
commitea5a58607a09a76f2ad57cc282fb56c208021248
tree54661fbf2d65cbe1378473e63e91b85c204d7d04
parent0ae146842a72da1eefe5a0851c9b70edc2efa9d5
drm/i915: Extract intel_wm_plane_visible()

All platforms that lack double buffered watermarks will need to
handle the legacy cursor updates in the same way. So let's extract the
logic to determine the plane visibility into a small helper. For
simplicity we'll make the function DTRT for any plane, but only apply
the special sauce for cursor planes.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170314151050.12194-1-ville.syrjala@linux.intel.com
Tested-by: Dorota Czaplejewicz <dorota.czaplejewicz@collabora.co.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_pm.c