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

Commit fcf9a16e authored by Clarence Ip's avatar Clarence Ip
Browse files

drm/msm/sde: select correct multirect op mode



This patch corrects a bug in the multirect op mode programming
to allow the correct parallel/time mx mode to be selected.

Change-Id: I1cc98a92ad9ffc7613b4cf7414c10c1251a9c7ce
Signed-off-by: default avatarClarence Ip <cip@codeaurora.org>
parent c652ccf1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -257,7 +257,10 @@ static void sde_hw_sspp_setup_multirect(struct sde_hw_pipe *ctx,
	} else {
		mode_mask = SDE_REG_READ(&ctx->hw, SSPP_MULTIRECT_OPMODE + idx);
		mode_mask |= index;
		mode_mask |= (mode == SDE_SSPP_MULTIRECT_TIME_MX) ? 0x4 : 0x0;
		if (mode == SDE_SSPP_MULTIRECT_TIME_MX)
			mode_mask |= BIT(2);
		else
			mode_mask &= ~BIT(2);
	}

	SDE_REG_WRITE(&ctx->hw, SSPP_MULTIRECT_OPMODE + idx, mode_mask);