mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 07:43:57 -04:00
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
47 lines
2.1 KiB
C
47 lines
2.1 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_VRR_H__
|
|
#define __INTEL_VRR_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_connector_state;
|
|
struct intel_atomic_state;
|
|
struct intel_connector;
|
|
struct intel_crtc_state;
|
|
struct intel_dsb;
|
|
struct intel_display;
|
|
|
|
bool intel_vrr_is_capable(struct intel_connector *connector);
|
|
bool intel_vrr_is_in_range(struct intel_connector *connector, int vrefresh);
|
|
bool intel_vrr_possible(const struct intel_crtc_state *crtc_state);
|
|
void intel_vrr_check_modeset(struct intel_atomic_state *state);
|
|
void intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
|
|
struct drm_connector_state *conn_state);
|
|
void intel_vrr_compute_guardband(struct intel_crtc_state *crtc_state);
|
|
void intel_vrr_set_transcoder_timings(const struct intel_crtc_state *crtc_state);
|
|
void intel_vrr_enable(const struct intel_crtc_state *crtc_state);
|
|
void intel_vrr_send_push(struct intel_dsb *dsb,
|
|
const struct intel_crtc_state *crtc_state);
|
|
void intel_vrr_check_push_sent(struct intel_dsb *dsb,
|
|
const struct intel_crtc_state *crtc_state);
|
|
bool intel_vrr_is_push_sent(const struct intel_crtc_state *crtc_state);
|
|
void intel_vrr_disable(const struct intel_crtc_state *old_crtc_state);
|
|
void intel_vrr_get_config(struct intel_crtc_state *crtc_state);
|
|
int intel_vrr_vmax_vtotal(const struct intel_crtc_state *crtc_state);
|
|
int intel_vrr_vmin_vtotal(const struct intel_crtc_state *crtc_state);
|
|
int intel_vrr_vmax_vblank_start(const struct intel_crtc_state *crtc_state);
|
|
int intel_vrr_vmin_vblank_start(const struct intel_crtc_state *crtc_state);
|
|
bool intel_vrr_is_fixed_rr(const struct intel_crtc_state *crtc_state);
|
|
void intel_vrr_transcoder_enable(const struct intel_crtc_state *crtc_state);
|
|
void intel_vrr_transcoder_disable(const struct intel_crtc_state *crtc_state);
|
|
void intel_vrr_set_fixed_rr_timings(const struct intel_crtc_state *crtc_state);
|
|
bool intel_vrr_always_use_vrr_tg(struct intel_display *display);
|
|
int intel_vrr_safe_window_start(const struct intel_crtc_state *crtc_state);
|
|
int intel_vrr_vmin_safe_window_end(const struct intel_crtc_state *crtc_state);
|
|
|
|
#endif /* __INTEL_VRR_H__ */
|