From f47184dbf0179be3551c3539f225b3c9ca9b3bdb Mon Sep 17 00:00:00 2001 From: Raviteja Tamatam Date: Thu, 17 Dec 2020 12:16:33 +0530 Subject: [PATCH] disp: msm: update DCE_DATA_COMPRESS bit in non-dsc case DCE_DATA_COMPRESS BIT needs to be set to 0 before the non-dsc frame is triggered in dsc to non-dsc switch case. Change-Id: I311dd3f0274d7c6b0baf2328cc50b584e4560915 Signed-off-by: Raviteja Tamatam --- msm/sde/sde_hw_intf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msm/sde/sde_hw_intf.c b/msm/sde/sde_hw_intf.c index 577f12905f..70c7f272fe 100644 --- a/msm/sde/sde_hw_intf.c +++ b/msm/sde/sde_hw_intf.c @@ -208,6 +208,8 @@ static inline void _check_and_set_comp_bit(struct sde_hw_intf *ctx, (IS_SDE_MAJOR_SAME(ctx->mdss->hwversion, SDE_HW_VER_600) && dsc_4hs_merge)) (*intf_cfg2) |= BIT(12); + else if (!compression_en) + (*intf_cfg2) &= ~BIT(12); } static void sde_hw_intf_reset_counter(struct sde_hw_intf *ctx)