]> 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)
commit02c26916a9cd52cea01dc10ec26388e4a1af2c76
tree8f1397a0db3a3a4dffb7f9a4752fb73a31640c11
parentef4623d85d98163989f76f6e194f8062467a33a4
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