diff options
author | Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> | 2017-10-31 19:39:36 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-11-14 17:32:45 +0100 |
commit | 3f0260f6fb86cdb35bf8e6974d50453e7b7f8e40 (patch) | |
tree | 2669cc657fb899f1fdfa647254c315ae11fa46a7 /drivers/gpu | |
parent | drm/amd/display: Miss register MST encoder cbs (diff) | |
download | linux-3f0260f6fb86cdb35bf8e6974d50453e7b7f8e40.tar.xz linux-3f0260f6fb86cdb35bf8e6974d50453e7b7f8e40.zip |
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 <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index ce3c57b38bc0..566ca82b5241 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1414,8 +1414,11 @@ 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++) { |