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)
commit24304d81930fdee0784ac27c0bf8d6a27f529382
tree54661fbf2d65cbe1378473e63e91b85c204d7d04
parent24f8e00a8a2eae92491f8668939dbfdc123d6e75
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