drm/i915/vrr: Use optimized guardband whenever VRR TG is active

Currently the guardband is optimized only for platforms where the
VRR timing generator is always ON.

Extend the usage of optimized guardband to all VRR supporting platforms.

v2: Drop check for `crtc_state->vrr.enable` and just return true
    unconditionally from intel_vrr_use_optimized_guardband(). (Ville)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20251017123504.2247954-6-ankit.k.nautiyal@intel.com
This commit is contained in:
Ankit Nautiyal 2025-10-17 18:05:04 +05:30
parent b2f88d7d5a
commit 4ba596539e

View File

@ -468,8 +468,6 @@ int intel_vrr_compute_optimized_guardband(struct intel_crtc_state *crtc_state)
static bool intel_vrr_use_optimized_guardband(const struct intel_crtc_state *crtc_state)
{
struct intel_display *display = to_intel_display(crtc_state);
/*
* #TODO: Enable optimized guardband for HDMI
* For HDMI lot of infoframes are transmitted a line or two after vsync.
@ -479,7 +477,7 @@ static bool intel_vrr_use_optimized_guardband(const struct intel_crtc_state *crt
if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
return false;
return intel_vrr_always_use_vrr_tg(display);
return true;
}
void intel_vrr_compute_guardband(struct intel_crtc_state *crtc_state)