[PATCH v9 8/8] drm/i915/display: Compute cmrr.enable flag

Mitul Golani mitulkumar.ajitkumar.golani at intel.com
Fri May 24 10:24:32 UTC 2024


Set cmrr.enable flag during intel_vrr_compute_config.

Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani at intel.com>
---
 drivers/gpu/drm/i915/display/intel_vrr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c
index 07be70f7c536..a981c8384f91 100644
--- a/drivers/gpu/drm/i915/display/intel_vrr.c
+++ b/drivers/gpu/drm/i915/display/intel_vrr.c
@@ -226,6 +226,7 @@ intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
 		crtc_state->mode_flags |= I915_MODE_FLAG_VRR;
 	} else if (is_cmrr_frac_required(crtc_state, is_edp)) {
 		crtc_state->vrr.enable = true;
+		crtc_state->cmrr.enable = true;
 		crtc_state->vrr.vmax = cmrr_get_vtotal(crtc_state);
 		crtc_state->vrr.vmin = crtc_state->vrr.vmax;
 		crtc_state->vrr.flipline = crtc_state->vrr.vmin;
-- 
2.25.1



More information about the Intel-gfx mailing list