drm/amd/display: use full update for clip size increase of large plane source
authorWenjing Liu <wenjing.liu@amd.com>
Thu, 21 Sep 2023 18:43:21 +0000 (14:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Oct 2023 22:42:09 +0000 (18:42 -0400)
commit05b78277ef0efc1deebc8a22384fffec29a3676e
tree7981c690ac7870a09ef45399ea0d5dd8d52da397
parent889d55154516ec8f98ea953e8660963f2e29c75d
drm/amd/display: use full update for clip size increase of large plane source

[why]
Clip size increase will increase viewport, which could cause us to
switch  to MPC combine.
If we skip full update, we are not able to change to MPC combine in
fast update. This will cause corruption showing on the video plane.

[how]
treat clip size increase of a surface larger than 5k as a full update.

Reviewed-by: Jun Lei <jun.lei@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