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>
Thu, 19 Jan 2023 04:06:44 +0000 (23:06 -0500)
commit040625ab82ce6dca7772cb3867fe5c9eb279a344
tree2907bb98c2bb32b748269dc99dd0f4f47088f7b7
parente695bc7e542358978434c8489a5a164d2bbefae8
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c