summaryrefslogtreecommitdiff
path: root/src/radeon_present.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-02-28 18:13:42 +0900
committerMichel Dänzer <michel@daenzer.net>2017-03-01 16:58:03 +0900
commit9035b6abea557828e672ee455f0c84e43da0906f (patch)
treee7ad4e130cfb156efef1022e8de135e6e526e5dc /src/radeon_present.c
parent0a4eb0e12f0c9c653cf4cea6fd62e1a507eb261c (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. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_present.c')
-rw-r--r--src/radeon_present.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_present.c b/src/radeon_present.c
index 01409ffa..af55e462 100644
--- a/src/radeon_present.c
+++ b/src/radeon_present.c
@@ -347,6 +347,8 @@ radeon_present_flip(RRCrtcPtr crtc, uint64_t event_id, uint64_t target_msc,
event->event_id = event_id;
+ radeon_cs_flush_indirect(scrn);
+
ret = radeon_do_pageflip(scrn, RADEON_DRM_QUEUE_CLIENT_DEFAULT, handle,
event_id, event, crtc_id,
radeon_present_flip_event,