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

Commit 6cde8863 authored by Ujwal Patel's avatar Ujwal Patel
Browse files

msm: mdss: Fix mixer config for 8084 RGB3 & ViG3 pipes



Layer mixer configuration of RGB3 & ViG3 pipes of 8084 MDSS is different
than 0-2 pipes. Current implementation works only if layer passing through
these pipes is base layer. Fix this by implementing correct mixer config
for other blending stages.

Change-Id: I2410b3e601080a52706195a2507e78da457dc87a
Signed-off-by: default avatarUjwal Patel <ujwalp@codeaurora.org>
parent 4cc8eb49
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1317,7 +1317,13 @@ static int mdss_mdp_mixer_setup(struct mdss_mdp_ctl *ctl,
		if (!pipe->src_fmt->alpha_enable && bg_alpha_enable)
			blend_color_out = 0;

		if (pipe->num == MDSS_MDP_SSPP_VIG3 ||
			pipe->num == MDSS_MDP_SSPP_RGB3) {
			/* Add 2 to account for Cursor & Border bits */
			mixercfg |= stage << ((3 * pipe->num)+2);
		} else {
			mixercfg |= stage << (3 * pipe->num);
		}

		pr_debug("stg=%d op=%x fg_alpha=%x bg_alpha=%x\n", stage,
					blend_op, fg_alpha, bg_alpha);