From feb370e4ea0bd49080b2d4ee198f190af1ad29ea Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 14 Feb 2011 13:20:09 +0100 Subject: [PATCH] compositor-drm: Flush before pageflipping This fixes compositor-drm flickering on r600. --- compositor/compositor-drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c index 6df6b34c..50f353b5 100644 --- a/compositor/compositor-drm.c +++ b/compositor/compositor-drm.c @@ -65,6 +65,7 @@ drm_compositor_present(struct wlsc_compositor *ec) GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, output->rbo[output->current]); + glFlush(); drmModePageFlip(c->base.drm.fd, output->crtc_id, output->fb_id[output->current ^ 1],