瀏覽代碼

drm: msm: skip re-marking color processing features as dirty

Current implementation we apply the color properties when atomic begin
is called and mark features as dirty if crtc is not enabled.
For some of the non double buffered features in video mode we will
see a corruption. Change removes marking color properties as dirty
based on crtc on/off.

Change-Id: I4d93b14627d2bc06fcbca3ea9538a4baedb00e56
Signed-off-by: Lakshmi Narayana Kalavala <[email protected]>
Lakshmi Narayana Kalavala 2 年之前
父節點
當前提交
2751ec018d
共有 2 個文件被更改,包括 0 次插入6 次删除
  1. 0 3
      msm/sde/sde_color_processing.c
  2. 0 3
      msm/sde/sde_crtc.c

+ 0 - 3
msm/sde/sde_color_processing.c

@@ -2328,9 +2328,6 @@ void sde_cp_crtc_apply_properties(struct drm_crtc *crtc)
 	}
 
 	_sde_cp_flush_properties(crtc);
-	if (!sde_crtc->enabled)
-		return;
-
 	mutex_lock(&sde_crtc->crtc_cp_lock);
 	_sde_clear_ltm_merge_mode(sde_crtc);
 

+ 0 - 3
msm/sde/sde_crtc.c

@@ -4301,9 +4301,6 @@ static void _sde_crtc_atomic_begin(struct drm_crtc *crtc,
 	if (sde_kms_is_cp_operation_allowed(sde_kms))
 		sde_cp_crtc_apply_properties(crtc);
 
-	if (!sde_crtc->enabled)
-		sde_cp_crtc_mark_features_dirty(crtc);
-
 	/*
 	 * PP_DONE irq is only used by command mode for now.
 	 * It is better to request pending before FLUSH and START trigger