Просмотр исходного кода

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 <[email protected]>
Raviteja Tamatam 4 лет назад
Родитель
Сommit
f47184dbf0
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      msm/sde/sde_hw_intf.c

+ 2 - 0
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)