From: Axel Davy Date: Tue, 3 Dec 2013 16:38:09 +0000 (+0100) Subject: egl/wayland: Flush the wl_display at the end of SwapBuffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=402bf6e8d098b64390277b229f7fae769e4449e5;p=mesa.git egl/wayland: Flush the wl_display at the end of SwapBuffers 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 Cc: "10.0" mesa-stable@lists.freedesktop.org --- diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index f9065bbf0db..9dfe4272bcf 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -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; }