summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-03-03 16:28:41 +0900
committerMichel Dänzer <michel@daenzer.net>2017-03-07 16:53:02 +0900
commitb31489c086b4bc50c824e85fa26d97c0f43afb20 (patch)
tree3c3e157186a7b8addb06bf18fa0df7dc1996e048 /src
parentf6a3c87c3097e8d5c1d2159bc90d6541a46ed8be (diff)
present: Also flush before using a flip to unflip
Not doing so might result in intermittently scanning out stale contents of the screen pixmap. (Ported from radeon commit 9a951a3e551db58ba50e7a594521ceac54d90615) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_present.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c
index cf6e36b..4048f98 100644
--- a/src/amdgpu_present.c
+++ b/src/amdgpu_present.c
@@ -366,6 +366,7 @@ amdgpu_present_unflip(ScreenPtr screen, uint64_t event_id)
event->event_id = event_id;
event->unflip = TRUE;
+ amdgpu_glamor_flush(scrn);
if (amdgpu_do_pageflip(scrn, AMDGPU_DRM_QUEUE_CLIENT_DEFAULT, pixmap,
event_id, event, -1, amdgpu_present_flip_event,
amdgpu_present_flip_abort, FLIP_VSYNC, 0))