Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4611e44 authored by Matt Roper's avatar Matt Roper Committed by Daniel Vetter
Browse files

drm/i915: Don't set plane visible during HW readout if CRTC is off



We already ensure that pstate->visible = false when crtc->active = false
during runtime programming; make sure we follow the same logic when
reading out initial hardware state.

Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent a28170f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15166,7 +15166,7 @@ static void readout_plane_state(struct intel_crtc *crtc)
	struct intel_plane_state *plane_state =
		to_intel_plane_state(primary->state);

	plane_state->visible =
	plane_state->visible = crtc->active &&
		primary_get_hw_state(to_intel_plane(primary));

	if (plane_state->visible)