]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix VBA chroma calculation for pipe splitting
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 22 May 2020 17:24:06 +0000 (13:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:20 +0000 (01:59 -0400)
commit5c1a00af3b363fbce362c19c87f9c529bfbf53bd
treea1f506023cffd5ae68980cb9b4d34e7f05502819
parent1e5e77c8f941876c71cf51c198d63cecd57f0993
drm/amd/display: Fix VBA chroma calculation for pipe splitting

[Why]
DML failures occur for 420 modes with dynamic pipe
splitting enabled because the ChromaViewport exceeds
the ChromaSurfaceWidth.

This is caused by adding the viewport_width instead
of the viewport_width_c.

This similarly occurs for rotated modes due to the
use of viewport_height instead of viewport_height_c.

[How]
Correct the calculations.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c