소스 검색

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