mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
Revert "drm/amd/display: Fix writeback_info never got updated"
This reverts commit 8a307777c3.
[WHY & HOW]
The writeback series cause a regression in thunderbolt display.
Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
8f4bdbc8e9
commit
c1929159f7
|
|
@ -509,13 +509,18 @@ bool dc_stream_remove_writeback(struct dc *dc,
|
|||
return false;
|
||||
}
|
||||
|
||||
// stream->writeback_info[dwb_pipe_inst].wb_enabled = false;
|
||||
for (i = 0; i < stream->num_wb_info; i++) {
|
||||
/*dynamic update*/
|
||||
if (stream->writeback_info[i].wb_enabled &&
|
||||
stream->writeback_info[i].dwb_pipe_inst == dwb_pipe_inst) {
|
||||
stream->writeback_info[i].wb_enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
/* remove writeback info for disabled writeback pipes from stream */
|
||||
for (i = 0, j = 0; i < stream->num_wb_info; i++) {
|
||||
if (stream->writeback_info[i].wb_enabled) {
|
||||
|
||||
if (stream->writeback_info[i].dwb_pipe_inst == dwb_pipe_inst)
|
||||
stream->writeback_info[i].wb_enabled = false;
|
||||
|
||||
if (j < i)
|
||||
/* trim the array */
|
||||
memcpy(&stream->writeback_info[j], &stream->writeback_info[i],
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user