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

Commit 94710bc0 authored by Lloyd Atkinson's avatar Lloyd Atkinson
Browse files

drm/msm/sde: reset mixers swapped state on acquiring mixers



Reset the mixers swapped status when setting up the mixers at
the start and end a use case. This addresses the case where the
last frame before disable was a right-only partial update
requiring a mixer swap due to DSC merge topology.

Change-Id: I1af2480886ab72ef689bc1d37d890bf3f4e135c5
Signed-off-by: default avatarLloyd Atkinson <latkinso@codeaurora.org>
parent 138d7bb7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2430,6 +2430,7 @@ static void _sde_crtc_setup_mixers(struct drm_crtc *crtc)
	struct drm_encoder *enc;

	sde_crtc->num_mixers = 0;
	sde_crtc->mixers_swapped = false;
	memset(sde_crtc->mixers, 0, sizeof(sde_crtc->mixers));

	mutex_lock(&sde_crtc->crtc_lock);
@@ -3226,6 +3227,7 @@ static void sde_crtc_disable(struct drm_crtc *crtc)

	memset(sde_crtc->mixers, 0, sizeof(sde_crtc->mixers));
	sde_crtc->num_mixers = 0;
	sde_crtc->mixers_swapped = false;

	/* disable clk & bw control until clk & bw properties are set */
	cstate->bw_control = false;