]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: calculate final viewport before TAP optimization
authorYihan Zhu <Yihan.Zhu@amd.com>
Thu, 26 Sep 2024 13:49:25 +0000 (09:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:13 +0000 (20:03 +0100)
commit7c4fd0072ad1be41bcdfbf95cb05df9c0d7ccf84
tree4c1f2a81ec0bc96739a4572aeaa975a8abf31252
parent1117462773627ea4522bf6dcfffbdce82b364e01
drm/amd/display: calculate final viewport before TAP optimization

[ Upstream commit e982310c9ce074e428abc260dc3cba1b1ea62b78 ]

Viewport size excess surface size observed sometime with some timings or
resizing the MPO video window to cause MPO unsupported. Calculate final
viewport size first with a 100x100 dummy viewport to get the max TAP
support and then re-run final viewport calculation if TAP value changed.
Removed obsolete preliminary viewport calculation for TAP validation.

Reviewed-by: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
Signed-off-by: Yihan Zhu <Yihan.Zhu@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: c33a93201ca0 ("drm/amd/display: Ignore scalar validation failure if pipe is phantom")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c