Skip to content

Commit f9bc5e3

Browse files
Anthony Wanggregkh
authored andcommitted
drm/amd/display: Force vsync flip when reconfiguring MPCC
[ Upstream commit 56d6378 ] [Why] Underflow observed when disabling PIP overlay in-game when vsync is disabled, due to OTC master lock not working with game pipe which is immediate flip. [How] When performing a full update, override flip_immediate value to false for all planes, so that flip occurs on vsync. Signed-off-by: Anthony Wang <anthony1.wang@amd.com> Acked-by: Bindu Ramamurthy <bindur12@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 63e9abe commit f9bc5e3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • drivers/gpu/drm/amd/display/dc/core

‎drivers/gpu/drm/amd/display/dc/core/dc.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,6 +2504,10 @@ static void commit_planes_for_stream(struct dc *dc,
25042504
plane_state->triplebuffer_flips = true;
25052505
}
25062506
}
2507+
if (update_type == UPDATE_TYPE_FULL) {
2508+
/* force vsync flip when reconfiguring pipes to prevent underflow */
2509+
plane_state->flip_immediate = false;
2510+
}
25072511
}
25082512
}
25092513

0 commit comments

Comments
 (0)