drm/amd/display: Reset pipe count when iterating for DET override
authorTaimur Hassan <Syed.Hassan@amd.com>
Wed, 13 Jul 2022 21:07:43 +0000 (17:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jul 2022 21:15:44 +0000 (17:15 -0400)
commitf46e3f28f89b893685ec9204405677dac410d8ad
tree66fe2d9abf9580e1b37d541a7f9f3e977b624de4
parent4a21ab548a7ac19b15aba9aa8df39972ed82f4ad
drm/amd/display: Reset pipe count when iterating for DET override

[Why]
Coding error in DET allocation was resulting in too few DET segments
being allocated, causing underflow.

[How]
Reset pipe count each time we begin iterating through pipes for a stream.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Taimur Hassan <Syed.Hassan@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_resource_helpers.c