]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make intel_crtc_disable_planes() use active planes mask.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 20 Sep 2018 10:27:07 +0000 (12:27 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 21 Sep 2018 17:18:19 +0000 (19:18 +0200)
commitf59e9701dbdc275a3042e1357574e0e1779b3082
tree8f1397a0db3a3a4dffb7f9a4752fb73a31640c11
parent62ef0dd3cc0c217c3d58a1e92577c66c08598f7b
drm/i915: Make intel_crtc_disable_planes() use active planes mask.

This will only disable planes we actually had marked as visible in
crtc_state->visible_planes and cleans up intel_crtc_disable_plane()
slightly.

This is also useful for when we start enabling NV12 support for gen11,
in which we will make the separate Y plane visible, but ignore the
Y plane's state.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180920102711.4184-5-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/intel_display.c