Commit 5a5bdc17 authored by Mitul Golani's avatar Mitul Golani Committed by Suraj Kandpal

drm/i915/display: Send vrr vsync params whne vrr is enabled

Compute trans vrr vsync params only when either VRR or CMRR
is enabled.

Fixes: 5922f453 ("drm/i915/display: Compute vrr vsync params")
Cc: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: default avatarMitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Reviewed-by: default avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: default avatarSuraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240611120525.148042-1-mitulkumar.ajitkumar.golani@intel.com
parent da8c3cdb
...@@ -232,7 +232,8 @@ intel_vrr_compute_config(struct intel_crtc_state *crtc_state, ...@@ -232,7 +232,8 @@ intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
crtc_state->mode_flags |= I915_MODE_FLAG_VRR; crtc_state->mode_flags |= I915_MODE_FLAG_VRR;
} }
if (intel_dp_as_sdp_supported(intel_dp)) { if (intel_dp_as_sdp_supported(intel_dp) &&
crtc_state->vrr.enable) {
crtc_state->vrr.vsync_start = crtc_state->vrr.vsync_start =
(crtc_state->hw.adjusted_mode.crtc_vtotal - (crtc_state->hw.adjusted_mode.crtc_vtotal -
crtc_state->hw.adjusted_mode.vsync_start); crtc_state->hw.adjusted_mode.vsync_start);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment