]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:56:16 +0000 (16:56 +0000)
commit3a3a6dc9a33081475986cec318b5acad50d5a98d
tree91c159e3cff3dbb12e6315c546b99ca10216bc77
parent7d43cdd22cd81a2b079e864c4321b9aba4c6af34
drm/amd/display: use full update for clip size increase of large plane source

[ Upstream commit 05b78277ef0efc1deebc8a22384fffec29a3676e ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h