mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
drm/i915/vrr: Move HAS_VRR() check into intel_vrr_set_transcoder_timings()
Reduce the clutter in hsw_configure_cpu_transcoder() a bit by moving the HAS_VRR() check into intel_vrr_set_transcoder_timings(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20251020185038.4272-18-ville.syrjala@linux.intel.com Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
This commit is contained in:
parent
065d28dd32
commit
78ea8eb5b6
|
|
@ -1581,8 +1581,7 @@ static void hsw_configure_cpu_transcoder(const struct intel_crtc_state *crtc_sta
|
|||
}
|
||||
|
||||
intel_set_transcoder_timings(crtc_state);
|
||||
if (HAS_VRR(display))
|
||||
intel_vrr_set_transcoder_timings(crtc_state);
|
||||
intel_vrr_set_transcoder_timings(crtc_state);
|
||||
|
||||
if (cpu_transcoder != TRANSCODER_EDP)
|
||||
intel_de_write(display, TRANS_MULT(display, cpu_transcoder),
|
||||
|
|
|
|||
|
|
@ -534,6 +534,9 @@ void intel_vrr_set_transcoder_timings(const struct intel_crtc_state *crtc_state)
|
|||
struct intel_display *display = to_intel_display(crtc_state);
|
||||
enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
|
||||
|
||||
if (!HAS_VRR(display))
|
||||
return;
|
||||
|
||||
/*
|
||||
* This bit seems to have two meanings depending on the platform:
|
||||
* TGL: generate VRR "safe window" for DSB vblank waits
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user