[PATCH] compositor-drm: Flush before pageflipping

Benjamin Franzke benjaminfranzke at googlemail.com
Mon Feb 14 04:20:09 PST 2011


This fixes compositor-drm flickering on r600.
---
 compositor/compositor-drm.c |    1 +
 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],
-- 
1.7.3.4



More information about the wayland-devel mailing list