]> 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:33:00 +0000 (14:33 -0400)
commit3999ed1fd21fab14dbe29ae74c3466a29b5f9ab2
tree2d902ebc97b2ba5c1478d3fd1d4a30f5dae1c505
parent52bacc872cc6056c0922a8a3f30a846768183dee
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