Ver código fonte

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 anos atrás
pai
commit
2751ec018d
2 arquivos alterados com 0 adições e 6 exclusões
  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