Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/display: Introduce transcoder_has_vrr() helper

Introduce a new helper to check transcoder_has_vrr() and use
that to exclude transcoders which do not support VRR.

v2: Include HAS_VRR into the helper. (Ville)
v3: Drop the usage in places where not applicable. (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/20250327144629.648306-2-ankit.k.nautiyal@intel.com

+10 -1
+10 -1
drivers/gpu/drm/i915/display/intel_display.c
··· 2625 2625 PIPE_LINK_N2(display, transcoder)); 2626 2626 } 2627 2627 2628 + static bool 2629 + transcoder_has_vrr(const struct intel_crtc_state *crtc_state) 2630 + { 2631 + struct intel_display *display = to_intel_display(crtc_state); 2632 + enum transcoder cpu_transcoder = crtc_state->cpu_transcoder; 2633 + 2634 + return HAS_VRR(display) && !transcoder_is_dsi(cpu_transcoder); 2635 + } 2636 + 2628 2637 static void intel_set_transcoder_timings(const struct intel_crtc_state *crtc_state) 2629 2638 { 2630 2639 struct intel_display *display = to_intel_display(crtc_state); ··· 3917 3908 DISPLAY_VER(display) >= 11) 3918 3909 intel_get_transcoder_timings(crtc, pipe_config); 3919 3910 3920 - if (HAS_VRR(display) && !transcoder_is_dsi(pipe_config->cpu_transcoder)) 3911 + if (transcoder_has_vrr(pipe_config)) 3921 3912 intel_vrr_get_config(pipe_config); 3922 3913 3923 3914 intel_get_pipe_src_size(crtc, pipe_config);