File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
drivers/gpu/drm/amd/display/amdgpu_dm Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -668,21 +668,15 @@ static void dm_crtc_high_irq(void *interrupt_params)
668
668
spin_lock_irqsave (& adev_to_drm (adev )-> event_lock , flags );
669
669
670
670
if (acrtc -> dm_irq_params .stream &&
671
- acrtc -> dm_irq_params .vrr_params .supported ) {
672
- bool replay_en = acrtc -> dm_irq_params .stream -> link -> replay_settings .replay_feature_enabled ;
673
- bool psr_en = acrtc -> dm_irq_params .stream -> link -> psr_settings .psr_feature_enabled ;
674
- bool fs_active_var_en = acrtc -> dm_irq_params .freesync_config .state == VRR_STATE_ACTIVE_VARIABLE ;
675
-
671
+ acrtc -> dm_irq_params .vrr_params .supported &&
672
+ acrtc -> dm_irq_params .freesync_config .state ==
673
+ VRR_STATE_ACTIVE_VARIABLE ) {
676
674
mod_freesync_handle_v_update (adev -> dm .freesync_module ,
677
675
acrtc -> dm_irq_params .stream ,
678
676
& acrtc -> dm_irq_params .vrr_params );
679
677
680
- /* update vmin_vmax only if freesync is enabled, or only if PSR and REPLAY are disabled */
681
- if (fs_active_var_en || (!fs_active_var_en && !replay_en && !psr_en )) {
682
- dc_stream_adjust_vmin_vmax (adev -> dm .dc ,
683
- acrtc -> dm_irq_params .stream ,
684
- & acrtc -> dm_irq_params .vrr_params .adjust );
685
- }
678
+ dc_stream_adjust_vmin_vmax (adev -> dm .dc , acrtc -> dm_irq_params .stream ,
679
+ & acrtc -> dm_irq_params .vrr_params .adjust );
686
680
}
687
681
688
682
/*
You can’t perform that action at this time.
0 commit comments