compositor-drm: Flush before pageflipping
This fixes compositor-drm flickering on r600.
This commit is contained in:
committed by
Kristian Høgsberg
parent
fa4e2a7676
commit
feb370e4ea
@@ -65,6 +65,7 @@ drm_compositor_present(struct wlsc_compositor *ec)
|
|||||||
GL_COLOR_ATTACHMENT0,
|
GL_COLOR_ATTACHMENT0,
|
||||||
GL_RENDERBUFFER,
|
GL_RENDERBUFFER,
|
||||||
output->rbo[output->current]);
|
output->rbo[output->current]);
|
||||||
|
glFlush();
|
||||||
|
|
||||||
drmModePageFlip(c->base.drm.fd, output->crtc_id,
|
drmModePageFlip(c->base.drm.fd, output->crtc_id,
|
||||||
output->fb_id[output->current ^ 1],
|
output->fb_id[output->current ^ 1],
|
||||||
|
|||||||
Reference in New Issue
Block a user