File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
drivers/gpu/drm/amd/display Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -372,6 +372,8 @@ get_crtc_by_otg_inst(struct amdgpu_device *adev,
372
372
static inline bool is_dc_timing_adjust_needed (struct dm_crtc_state * old_state ,
373
373
struct dm_crtc_state * new_state )
374
374
{
375
+ if (new_state -> stream -> adjust .timing_adjust_pending )
376
+ return true;
375
377
if (new_state -> freesync_config .state == VRR_STATE_ACTIVE_FIXED )
376
378
return true;
377
379
else if (amdgpu_dm_crtc_vrr_active (old_state ) != amdgpu_dm_crtc_vrr_active (new_state ))
Original file line number Diff line number Diff line change @@ -439,9 +439,12 @@ bool dc_stream_adjust_vmin_vmax(struct dc *dc,
439
439
* Don't adjust DRR while there's bandwidth optimizations pending to
440
440
* avoid conflicting with firmware updates.
441
441
*/
442
- if (dc -> ctx -> dce_version > DCE_VERSION_MAX )
443
- if (dc -> optimized_required || dc -> wm_optimized_required )
442
+ if (dc -> ctx -> dce_version > DCE_VERSION_MAX ) {
443
+ if (dc -> optimized_required || dc -> wm_optimized_required ) {
444
+ stream -> adjust .timing_adjust_pending = true;
444
445
return false;
446
+ }
447
+ }
445
448
446
449
dc_exit_ips_for_hw_access (dc );
447
450
@@ -3168,7 +3171,8 @@ static void copy_stream_update_to_stream(struct dc *dc,
3168
3171
3169
3172
if (update -> crtc_timing_adjust ) {
3170
3173
if (stream -> adjust .v_total_min != update -> crtc_timing_adjust -> v_total_min ||
3171
- stream -> adjust .v_total_max != update -> crtc_timing_adjust -> v_total_max )
3174
+ stream -> adjust .v_total_max != update -> crtc_timing_adjust -> v_total_max ||
3175
+ stream -> adjust .timing_adjust_pending )
3172
3176
update -> crtc_timing_adjust -> timing_adjust_pending = true;
3173
3177
stream -> adjust = * update -> crtc_timing_adjust ;
3174
3178
update -> crtc_timing_adjust -> timing_adjust_pending = false;
You can’t perform that action at this time.
0 commit comments