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 @@ -374,6 +374,8 @@ get_crtc_by_otg_inst(struct amdgpu_device *adev,
374
374
static inline bool is_dc_timing_adjust_needed (struct dm_crtc_state * old_state ,
375
375
struct dm_crtc_state * new_state )
376
376
{
377
+ if (new_state -> stream -> adjust .timing_adjust_pending )
378
+ return true;
377
379
if (new_state -> freesync_config .state == VRR_STATE_ACTIVE_FIXED )
378
380
return true;
379
381
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 @@ -441,9 +441,12 @@ bool dc_stream_adjust_vmin_vmax(struct dc *dc,
441
441
* Don't adjust DRR while there's bandwidth optimizations pending to
442
442
* avoid conflicting with firmware updates.
443
443
*/
444
- if (dc -> ctx -> dce_version > DCE_VERSION_MAX )
445
- if (dc -> optimized_required || dc -> wm_optimized_required )
444
+ if (dc -> ctx -> dce_version > DCE_VERSION_MAX ) {
445
+ if (dc -> optimized_required || dc -> wm_optimized_required ) {
446
+ stream -> adjust .timing_adjust_pending = true;
446
447
return false;
448
+ }
449
+ }
447
450
448
451
dc_exit_ips_for_hw_access (dc );
449
452
@@ -3241,7 +3244,8 @@ static void copy_stream_update_to_stream(struct dc *dc,
3241
3244
3242
3245
if (update -> crtc_timing_adjust ) {
3243
3246
if (stream -> adjust .v_total_min != update -> crtc_timing_adjust -> v_total_min ||
3244
- stream -> adjust .v_total_max != update -> crtc_timing_adjust -> v_total_max )
3247
+ stream -> adjust .v_total_max != update -> crtc_timing_adjust -> v_total_max ||
3248
+ stream -> adjust .timing_adjust_pending )
3245
3249
update -> crtc_timing_adjust -> timing_adjust_pending = true;
3246
3250
stream -> adjust = * update -> crtc_timing_adjust ;
3247
3251
update -> crtc_timing_adjust -> timing_adjust_pending = false;
You can’t perform that action at this time.
0 commit comments