drm/amd/display: Use viewport height for subvp mall allocation size
authorDillon Varone <Dillon.Varone@amd.com>
Thu, 10 Nov 2022 17:13:47 +0000 (12:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2022 14:01:53 +0000 (09:01 -0500)
commitdd2c028c1395d622df7ddd6837f8ab2dc94008ee
tree5a915a6b1f0fb87173bdc82e19b88aa7ed0476b0
parent5d82c82f1dbee264f7a94587adbbfee607706902
drm/amd/display: Use viewport height for subvp mall allocation size

[WHY?]
MALL allocation size depends on the viewport height, not the addressable
vertical lines, which will not match when scaling.

[HOW?]
Base MALL allocation size calculations off viewport height.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c