drm/amd/display: Fix writeback_info is not removed
authorAlex Hung <alex.hung@amd.com>
Fri, 19 May 2023 23:14:30 +0000 (17:14 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Oct 2023 19:42:32 +0000 (15:42 -0400)
commit5b89d2ccc8466e0445a4994cb288fc009b565de5
tree9c5c2bfcfbb4added6b83f377186ccca05a57101
parent58c3b3341cea4f75dc8c003b89f8a6dd8ec55e50
drm/amd/display: Fix writeback_info is not removed

[WHY]
Counter j was not updated to present the num of writeback_info when
writeback pipes are removed.

[HOW]
update j (num of writeback info) under the correct condition.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c