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

Commit 4a894573 authored by Narendra Muppalla's avatar Narendra Muppalla Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: enable constant color for UBWC 3.0



Since const color has more priority than const alpha,
change enables constant color mask for UBWC 3.0 and
disables constant alpha.

Change-Id: I0bae836995d67ef3806c6d7794a85a41cb07b128
Signed-off-by: default avatarNarendra Muppalla <NarendraM@codeaurora.org>
parent d732694b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -342,6 +342,10 @@ static void sde_hw_sspp_setup_format(struct sde_hw_pipe *ctx,
			SDE_REG_WRITE(c, SSPP_UBWC_STATIC_CTRL,
				alpha_en_mask | (ctx->mdp->ubwc_swizzle) |
				(ctx->mdp->highest_bank_bit << 4));
		} else if (IS_UBWC_30_SUPPORTED(ctx->catalog->ubwc_version)) {
			SDE_REG_WRITE(c, SSPP_UBWC_STATIC_CTRL,
				BIT(30) | (ctx->mdp->ubwc_swizzle) |
				(ctx->mdp->highest_bank_bit << 4));
		}
	}