drm/amd/display: Fix set scaling doesn's work
authorhongao <hongao@uniontech.com>
Tue, 22 Nov 2022 11:20:34 +0000 (19:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jan 2023 19:54:06 +0000 (14:54 -0500)
commit3c6d1aeb43425bebb52bc569950a03c15604c2d7
treec8666c56a6cb004ee2f1d8603cc279dcd7fdf515
parentc3d749609472ba0b217b42ab66f80459847e2bcb
drm/amd/display: Fix set scaling doesn's work

[Why]
Setting scaling does not correctly update CRTC state. As a result
dc stream state's src (composition area) && dest (addressable area)
was not calculated as expected. This causes set scaling doesn's work.

[How]
Correctly update CRTC state when setting scaling property.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Tested-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: hongao <hongao@uniontech.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c