[PATCH 16/23] drm/i915/vrr: Fill fixed refresh mode in vrr_get_compute_config
Ankit Nautiyal
ankit.k.nautiyal at intel.com
Thu Nov 7 10:29:05 UTC 2024
Read the vrr fixed refresh rate mode.
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
---
drivers/gpu/drm/i915/display/intel_vrr.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c
index 7ee865117c03..8056fdb4ed15 100644
--- a/drivers/gpu/drm/i915/display/intel_vrr.c
+++ b/drivers/gpu/drm/i915/display/intel_vrr.c
@@ -473,6 +473,11 @@ void intel_vrr_get_config(struct intel_crtc_state *crtc_state)
TRANS_VRR_VMAX(display, cpu_transcoder)) + 1;
crtc_state->vrr.vmin = intel_de_read(display,
TRANS_VRR_VMIN(display, cpu_transcoder)) + 1;
+ if (crtc_state->vrr.mode != INTEL_VRRTG_MODE_CMRR &&
+ crtc_state->vrr.vmax == crtc_state->vrr.flipline &&
+ crtc_state->vrr.vmin == crtc_state->vrr.flipline)
+ crtc_state->vrr.mode = INTEL_VRRTG_MODE_FIXED_RR;
+
}
if (crtc_state->vrr.tg_enable) {
--
2.45.2
More information about the Intel-gfx-trybot
mailing list