Commit e3c88c44 authored by Alex Hung's avatar Alex Hung Committed by Alex Deucher
Browse files

Revert "drm/amd/display: Fix writeback_info is not removed"



This reverts commit 5b89d2cc.

[WHY & HOW]
The writeback series cause a regression in thunderbolt display.

Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 731a20cb
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -516,14 +516,13 @@ bool dc_stream_remove_writeback(struct dc *dc,
			if (stream->writeback_info[i].dwb_pipe_inst == dwb_pipe_inst)
				stream->writeback_info[i].wb_enabled = false;

			if (j < i)
				/* trim the array */
			if (j < i) {
				memcpy(&stream->writeback_info[j], &stream->writeback_info[i],
						sizeof(struct dc_writeback_info));
			j++;
		}
	}
	}
	stream->num_wb_info = j;

	/* recalculate and apply DML parameters */