From 79a6f4738e3892f16a2588b95b4f0f6a97004dfd Mon Sep 17 00:00:00 2001 From: Bhawanpreet Lakha Date: Wed, 1 Nov 2017 12:17:23 -0400 Subject: [PATCH 1/1] drm/amd/display: add flip_immediate to commit update for stream This struct is not updated on page flip and causes vblank_mode to not work as expected Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 96ebc3d1b4b2..ed86895104dd 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1372,8 +1372,10 @@ void dc_commit_updates_for_stream(struct dc *dc, /* TODO: On flip we don't build the state, so it still has the * old address. Which is why we are updating the address here */ - if (srf_updates[i].flip_addr) + if (srf_updates[i].flip_addr) { surface->address = srf_updates[i].flip_addr->address; + surface->flip_immediate = srf_updates[i].flip_addr->flip_immediate; + } if (update_type >= UPDATE_TYPE_MED) { for (j = 0; j < dc->res_pool->pipe_count; j++) { -- 2.11.0