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
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.
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)