summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-02-14 13:20:09 +0100
committerKristian Høgsberg <krh@bitplanet.net>2011-02-14 08:28:44 -0500
commitfeb370e4ea0bd49080b2d4ee198f190af1ad29ea (patch)
tree79130d8356f932f9363d0754e1914476b8023ca4
parentfa4e2a76769bd17c2ddc19b664cbd00bf971dc9b (diff)
compositor-drm: Flush before pageflipping
This fixes compositor-drm flickering on r600.
-rw-r--r--compositor/compositor-drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c
index 6df6b34..50f353b 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],