drm/amd/display: use actual cursor size instead of max for CAB allocation
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Thu, 18 Aug 2022 21:55:01 +0000 (17:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Aug 2022 21:04:09 +0000 (17:04 -0400)
commit595091c6ba35ba48c1f8186116bbbae2b208dce6
tree8e1fd1a164494771200ce2cb44545df22c4cdbd1
parent94a82c9e3dffb88182a4ed0464dc0266ad0d7b45
drm/amd/display: use actual cursor size instead of max for CAB allocation

[Why&How]
When calculating allocation for cursor size, get the real cursor through
the HUBP instead of using the maximum cursor size for more optimal
allocation

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@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_hwseq.c