]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: DCN2X Prefer ODM over bottom pipe to find second pipe
authorsunglee <sunglee@amd.com>
Fri, 9 Jul 2021 14:24:14 +0000 (10:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jul 2021 14:07:58 +0000 (10:07 -0400)
commitba580e3c70d8482edd388a2df59a1daa8439bdf5
treeab8e6c749b58befdeb970a462551521a84d65524
parent13137e79be1cefecf5cd676d0ec4bb0f71d55cfb
drm/amd/display: DCN2X Prefer ODM over bottom pipe to find second pipe

[WHY]
When finding a second pipe for pipe split, currently will look for
bottom pipe in context first to decide the second pipe. This causes
issues in 2 plane to 1 plane transitions like fullscreen video where
bottom pipe no longer exists in the new configuration.

[HOW]
If previous context had an ODM pipe, use that to find the secondary pipe
first before looking at bottom pipe.

Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: sunglee <sunglee@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c