]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/vrr: Compute fixed refresh rate timings the same way as CMRR timings
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Oct 2025 18:50:20 +0000 (21:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 24 Oct 2025 21:10:53 +0000 (00:10 +0300)
Unify the VRR timing computation stuff a bit having both the
fixed refresh rate and CMRR cases assign the crtc_state->vrr
stuff in exactly the same way.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20251020185038.4272-5-ville.syrjala@linux.intel.com
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
drivers/gpu/drm/i915/display/intel_vrr.c

index 92fb72b56f16486411d68980629b611860d0b9d5..510dc199376f3dfe19eca972ccbdfc1b985dd230 100644 (file)
@@ -305,12 +305,10 @@ void intel_vrr_set_fixed_rr_timings(const struct intel_crtc_state *crtc_state)
 static
 void intel_vrr_compute_fixed_rr_timings(struct intel_crtc_state *crtc_state)
 {
-       /*
-        * For fixed rr,  vmin = vmax = flipline.
-        * vmin is already set to crtc_vtotal set vmax and flipline the same.
-        */
+       /* For fixed rr,  vmin = vmax = flipline */
        crtc_state->vrr.vmax = crtc_state->hw.adjusted_mode.crtc_vtotal;
-       crtc_state->vrr.flipline = crtc_state->hw.adjusted_mode.crtc_vtotal;
+       crtc_state->vrr.vmin = crtc_state->vrr.vmax;
+       crtc_state->vrr.flipline = crtc_state->vrr.vmin;
 }
 
 static