mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/i915/vrr: Reorganize intel_vrr_compute_cmrr_timings() a bit
Move the cmrr.enable assignment next to the mode_flags assignment to keep things in a bit more logical order in intel_vrr_compute_cmrr_timings(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20251020185038.4272-6-ville.syrjala@linux.intel.com Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
This commit is contained in:
@@ -220,7 +220,6 @@ cmrr_get_vtotal(struct intel_crtc_state *crtc_state, bool video_mode_required)
|
||||
static
|
||||
void intel_vrr_compute_cmrr_timings(struct intel_crtc_state *crtc_state)
|
||||
{
|
||||
crtc_state->cmrr.enable = true;
|
||||
/*
|
||||
* TODO: Compute precise target refresh rate to determine
|
||||
* if video_mode_required should be true. Currently set to
|
||||
@@ -230,6 +229,8 @@ void intel_vrr_compute_cmrr_timings(struct intel_crtc_state *crtc_state)
|
||||
crtc_state->vrr.vmax = cmrr_get_vtotal(crtc_state, false);
|
||||
crtc_state->vrr.vmin = crtc_state->vrr.vmax;
|
||||
crtc_state->vrr.flipline = crtc_state->vrr.vmin;
|
||||
|
||||
crtc_state->cmrr.enable = true;
|
||||
crtc_state->mode_flags |= I915_MODE_FLAG_VRR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user