drm/amd/display: build scaling params when a new plane is appended
authorWenjing Liu <wenjing.liu@amd.com>
Tue, 12 Mar 2024 18:21:07 +0000 (14:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Mar 2024 05:40:38 +0000 (01:40 -0400)
commit506d32ee9f9b65c9680ff15ceb8c4c1e91fe71d8
tree110c6801803704858fa2a9156142a8d216d34679
parent57b1ce8384c71d59c48081a9cca91d22f1984a2d
drm/amd/display: build scaling params when a new plane is appended

[why & how]
We are boundling changes in plane state and build scaling params
together. This is to simplify DML code so DML doesn't need to build
scaling params. We are also avoiding rebuilding scaling params for
planes without scaling changes.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c