Mesa (10.0): egl/wayland: Flush the wl_display at the end of SwapBuffers

Carl Worth cworth at kemper.freedesktop.org
Fri Dec 13 04:22:07 UTC 2013


Module: Mesa
Branch: 10.0
Commit: 188c60143b1e77e62ec8404e8ecde2472fe9b80f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=188c60143b1e77e62ec8404e8ecde2472fe9b80f

Author: Axel Davy <axel.davy at ens.fr>
Date:   Tue Dec  3 17:38:09 2013 +0100

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 <axel.davy at ens.fr>
Cc: "10.0" mesa-stable at lists.freedesktop.org
(cherry picked from commit 402bf6e8d098b64390277b229f7fae769e4449e5)

---

 src/egl/drivers/dri2/platform_wayland.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index 3c301b6..d28fb72 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;
 }
 




More information about the mesa-commit mailing list