mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/i915/vrr: s/intel_vrr_compute_config_late/intel_vrr_compute_guardband
The helper intel_vrr_compute_config_late() practically just computes the
guardband. Rename intel_vrr_compute_config_late() to
intel_vrr_compute_guardband().
Since we are going to compute the guardband and then move the
vblank_start for optmizing guardband move it to
intel_crtc_compute_config() which handles such changes.
v2: Move the function at the last after clocks, pipe_mode etc. are all
set. (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/20251016055415.2101347-4-ankit.k.nautiyal@intel.com
This commit is contained in:
@@ -2431,6 +2431,8 @@ static int intel_crtc_compute_config(struct intel_atomic_state *state,
|
||||
if (crtc_state->has_pch_encoder)
|
||||
return ilk_fdi_compute_config(crtc, crtc_state);
|
||||
|
||||
intel_vrr_compute_guardband(crtc_state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -4722,8 +4724,6 @@ intel_modeset_pipe_config_late(struct intel_atomic_state *state,
|
||||
struct drm_connector *connector;
|
||||
int i;
|
||||
|
||||
intel_vrr_compute_config_late(crtc_state);
|
||||
|
||||
for_each_new_connector_in_state(&state->base, connector,
|
||||
conn_state, i) {
|
||||
struct intel_encoder *encoder =
|
||||
|
||||
Reference in New Issue
Block a user