drm/amd/display: Round cursor width up for MALL allocation
authorTaimur Hassan <Syed.Hassan@amd.com>
Thu, 25 Aug 2022 16:33:12 +0000 (12:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 18:27:00 +0000 (14:27 -0400)
commit6acc6196a7320b3d2a391925c4c884fc07f0b3df
treec2fb328967c1a2499345dfe236dc8e7c1aa690b7
parent0b15b1ec8b74bd5c9a4e4cbadab82c0657832799
drm/amd/display: Round cursor width up for MALL allocation

[Why & How]
When calculating cursor size for MALL allocation, the cursor width should
be the actual width rounded up to 64 alignment. Additionally, the bit
depth should vary depending on color format.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Taimur Hassan <Syed.Hassan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hubp.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c