summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
diff options
context:
space:
mode:
authorAric Cyr <aric.cyr@amd.com>2022-08-26 17:53:34 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-09-13 14:33:00 -0400
commit34955a1e797d074e72d0ac6a514d934d8fe80da1 (patch)
tree0433456d00c719b3262feee0af07a6b804e40008 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
parent4bd09d7481047500fcad389251e13946c083b9fb (diff)
downloadlinux-34955a1e797d074e72d0ac6a514d934d8fe80da1.tar.gz
linux-34955a1e797d074e72d0ac6a514d934d8fe80da1.tar.bz2
linux-34955a1e797d074e72d0ac6a514d934d8fe80da1.zip
drm/amd/display: Don't adjust VRR unnecessarily
[why] Do not need to spend time reprogramming DRR if there were no updates to the parameters. [how] Compare the current stream state to the requested one to determine if an update is required. In amdgpu_dm the timing_changed flag is set but never used so can remove it. Similarly, the stream update for VRR is done after dc_commit and should not update its adjust field until after the update is completed. The adjust field is managed by dc_stream_adjust_vmin_vmax and should not be manually updated in amdgpu_dm. Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com> Signed-off-by: Aric Cyr <aric.cyr@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
index b44faaad9b0b..b5ce15c43bcc 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
@@ -681,7 +681,6 @@ struct dm_crtc_state {
int crc_skip_count;
- bool freesync_timing_changed;
bool freesync_vrr_info_changed;
bool dsc_force_changed;