From 9035b6abea557828e672ee455f0c84e43da0906f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Tue, 28 Feb 2017 18:13:42 +0900 Subject: 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 --- src/radeon_present.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- cgit v1.2.3