]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/vrr: Use crtc_vsync_start/end for computing vrr.vsync_start/end
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 16 Oct 2025 05:54:05 +0000 (11:24 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 16 Oct 2025 13:57:34 +0000 (19:27 +0530)
Use adjusted_mode->crtc_vsync_start/end instead of
adjusted_mode->vsync_start while computing vrr.vsync_start/end.
For most modes, these are same but for 3D/stereo modes the
crtc_vsync_start is different than vsync_start.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://lore.kernel.org/r/20251016055415.2101347-2-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_vrr.c

index 190c51be5cbc9cb5ac6cda343478992ef7fecd02..4bc14b5e685fd93581ad4f30352f5fc2e8d48c3e 100644 (file)
@@ -394,10 +394,10 @@ intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
        if (HAS_AS_SDP(display)) {
                crtc_state->vrr.vsync_start =
                        (crtc_state->hw.adjusted_mode.crtc_vtotal -
-                        crtc_state->hw.adjusted_mode.vsync_start);
+                        crtc_state->hw.adjusted_mode.crtc_vsync_start);
                crtc_state->vrr.vsync_end =
                        (crtc_state->hw.adjusted_mode.crtc_vtotal -
-                        crtc_state->hw.adjusted_mode.vsync_end);
+                        crtc_state->hw.adjusted_mode.crtc_vsync_end);
        }
 }