소스 검색

Merge "disp: msm: dsi: remove seamless dms flag during active changed"

qctecmdr 4 년 전
부모
커밋
96d560a883
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      msm/dsi/dsi_drm.c

+ 8 - 0
msm/dsi/dsi_drm.c

@@ -491,6 +491,14 @@ static bool dsi_bridge_mode_fixup(struct drm_bridge *bridge,
 			return false;
 		}
 
+		/*
+		 * DMS Flag if set during active changed condition cannot be
+		 * treated as seamless. Hence, removing DMS flag in such cases.
+		 */
+		if ((dsi_mode.dsi_mode_flags & DSI_MODE_FLAG_DMS) &&
+				crtc_state->active_changed)
+			dsi_mode.dsi_mode_flags &= ~DSI_MODE_FLAG_DMS;
+
 		/* No DMS/VRR when drm pipeline is changing */
 		if (!drm_mode_equal(cur_mode, adjusted_mode) &&
 			(!(dsi_mode.dsi_mode_flags & DSI_MODE_FLAG_VRR)) &&