summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-03-03 16:34:16 +0900
committerMichel Dänzer <michel@daenzer.net>2017-03-07 16:54:04 +0900
commit8d4d73e05ce34eb353daec7b2c0e7c844113c7de (patch)
tree15ea436c1d93110b42836b488bfd63ad7d72759c /src
parent88725b68cad92418c9bb03cb7f20526ce238d64e (diff)
present: Flush before flipping
This isn't necessary for DRI clients, but the Present extension can also be used for presenting normal pixmaps rendered to via the X11 protocol. (Ported from radeon commit 9035b6abea557828e672ee455f0c84e43da0906f) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_present.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c
index d381e15..3c4bc52 100644
--- a/src/amdgpu_present.c
+++ b/src/amdgpu_present.c
@@ -327,6 +327,8 @@ amdgpu_present_flip(RRCrtcPtr crtc, uint64_t event_id, uint64_t target_msc,
event->event_id = event_id;
+ amdgpu_glamor_flush(scrn);
+
ret = amdgpu_do_pageflip(scrn, AMDGPU_DRM_QUEUE_CLIENT_DEFAULT,
pixmap, event_id, event, crtc_id,
amdgpu_present_flip_event,