]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e6ac7abc1dd03f04f9a32398d0eaf9b7b51fdc5
treec2fb328967c1a2499345dfe236dc8e7c1aa690b7
parentb8dc4a6e1112c01caa6c2e23deb8b823f02cbe6b
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