Skip to content

Commit 213e63e

Browse files
committed
drm/msm/dpu: handle UBWC 1.0 in dpu_hw_sspp_setup_format
Extend dpu_hw_sspp_setup_format() to also handle the UBWC 1.0 case. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/514336/ Link: https://lore.kernel.org/r/20221207142833.204193-2-dmitry.baryshkov@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
1 parent 59817b9 commit 213e63e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,11 @@ static void dpu_hw_sspp_setup_format(struct dpu_hw_pipe *ctx,
310310
ctx->mdp->highest_bank_bit << 18);
311311
switch (ctx->catalog->caps->ubwc_version) {
312312
case DPU_HW_UBWC_VER_10:
313-
/* TODO: UBWC v1 case */
313+
fast_clear = fmt->alpha_enable ? BIT(31) : 0;
314+
DPU_REG_WRITE(c, SSPP_UBWC_STATIC_CTRL,
315+
fast_clear | (ctx->mdp->ubwc_swizzle & 0x1) |
316+
BIT(8) |
317+
(ctx->mdp->highest_bank_bit << 4));
314318
break;
315319
case DPU_HW_UBWC_VER_20:
316320
fast_clear = fmt->alpha_enable ? BIT(31) : 0;

0 commit comments

Comments
 (0)