drm/amd/display: treat plane clip size change as MED update type
authorWenjing Liu <wenjing.liu@amd.com>
Tue, 30 Jan 2024 19:29:08 +0000 (14:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Feb 2024 22:12:48 +0000 (17:12 -0500)
commit3667c4298b419dfadd9b8eb14373a1211bf1057f
tree9632a29d6227475a21c05640326a91b027b532b2
parent3a6a32b31a111f6e66526fb2d3cb13a876465076
drm/amd/display: treat plane clip size change as MED update type

[why]
When clip size is changed recout and viewport size would require an
update. When the update is clip size only current driver fails to
program the update into hardware.

[how]
Set a new clip_size_change flag when it is detected and set MED update
type and reprogram scaling params in next program pipe.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@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/dc.h
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c