diff mbox series

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

Message ID 20240524102432.2499104-9-mitulkumar.ajitkumar.golani@intel.com (mailing list archive)
State New, archived
Headers show
Series Implement CMRR Support | expand

Commit Message

Golani, Mitulkumar Ajitkumar May 24, 2024, 10:24 a.m. UTC
Set cmrr.enable flag during intel_vrr_compute_config.

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

Patch

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;