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>
Mon, 29 Aug 2022 21:59:30 +0000 (17:59 -0400)
commit6420f4ca68fb9dc3f7f5c1c27eb9a60f4b751bf8
tree8f4f7073db7b0435b7614c493ca8051dc6564850
parentab23c5b9c74d682d81b0903247817b2bb20528bb
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