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

Commit 1f9bf6a1 authored by Naseer Ahmed's avatar Naseer Ahmed Committed by Abhijith Desai
Browse files

msm: mdss: Avoid overwriting dsc reconfiguration flag



While switching between panel resolutions with DSC on/off
the variable that is used to flag the reconfiguration
can be overwritten if the roi_changed flag is not true.

Change-Id: I2e3041c848aafbc7a348fca7ce450a4fadd0e8d7
Signed-off-by: default avatarNaseer Ahmed <naseer@codeaurora.org>
parent 8120dfca
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2151,8 +2151,10 @@ static void mdss_mdp_cmd_dsc_reconfig(struct mdss_mdp_ctl *ctl)
		}
	}

	changed = ctl->mixer_left->roi_changed;
	if (is_split_lm(ctl->mfd))
	if (ctl->mixer_left)
		changed |= ctl->mixer_left->roi_changed;
	if (is_split_lm(ctl->mfd) &&
	    ctl->mixer_right)
		changed |= ctl->mixer_right->roi_changed;

	if (changed)