drm/amd/display: Fix arithmetic error in MALL size calculations for subvp
authorDillon Varone <Dillon.Varone@amd.com>
Thu, 17 Nov 2022 18:57:31 +0000 (13:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Nov 2022 16:03:38 +0000 (11:03 -0500)
commit359bcc904e233c8285d40a92121c8a5056d36e6f
tree2d238297af1a762c059ef96daeea4e83f84d3047
parentaaae52110a381033d960c087bd276e2a857eb7cb
drm/amd/display: Fix arithmetic error in MALL size calculations for subvp

[Description]
Need to subtract unused section of the viewport when calculating required space
in MALL for subvp instead of adding, to prevent over allocation.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c