drm/amd/display: Update scaling settings on modeset
authorRoman Li <roman.li@amd.com>
Fri, 21 May 2021 14:20:25 +0000 (10:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:19:50 +0000 (12:19 -0400)
commitc521fc316d12fb9ea7b7680e301d673bceda922e
tree32e05822225024c439bddd2d3b36272f64e8337f
parent1be2a90288b4a4e281a5c5c420965117c23b1f97
drm/amd/display: Update scaling settings on modeset

[Why]
We update scaling settings when scaling mode has been changed.
However when changing mode from native resolution the scaling mode previously
set gets ignored.

[How]
Perform scaling settings update on modeset.

Signed-off-by: Roman Li <roman.li@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c