egl/wayland: Flush the wl_display at the end of SwapBuffers
authorAxel Davy <axel.davy@ens.fr>
Tue, 3 Dec 2013 16:38:09 +0000 (17:38 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 4 Dec 2013 23:48:28 +0000 (15:48 -0800)
We would like the compositor to receive the commited buffer
as soon as possible, so it has the time to treat it, and
release old ones. We shouldn't rely on the client
to flush the queue for us.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Cc: "10.0" mesa-stable@lists.freedesktop.org
src/egl/drivers/dri2/platform_wayland.c

index f9065bbf0db7ba2b8d0abdc398e98a2f4e7096a4..9dfe4272bcf5e021740de3145bbfcc9f16e5a2e4 100644 (file)
@@ -615,6 +615,8 @@ dri2_swap_buffers_with_damage(_EGLDriver *drv,
    (*dri2_dpy->flush->flush)(dri2_surf->dri_drawable);
    (*dri2_dpy->flush->invalidate)(dri2_surf->dri_drawable);
 
+   wl_display_flush(dri2_dpy->wl_dpy);
+
    return EGL_TRUE;
 }