drm/amd/display: Use correct plane for CAB cursor size allocation
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Fri, 19 Aug 2022 19:11:19 +0000 (15:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Aug 2022 21:08:07 +0000 (17:08 -0400)
commit6ffc967c36b42f864955cb2c5e8b3fded0baa918
tree625420d138ad6b5600ebe630d4574e0c1d0abad9
parentb97e914552c3fcea71ce03f899e285f2178ec38b
drm/amd/display: Use correct plane for CAB cursor size allocation

[Why&How]
plane and stream variables used for cursor size allocation calculation
were stale from previous iteration. Redo the iteration to find the
correct cursor plane for the calculation.

Reviewed-by: Alvin Lee <Alvin.Lee2@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