Mesa (master): egl/wayland: Add invalidate back in eglSwapBuffers()

Kristian Høgsberg krh at kemper.freedesktop.org
Fri Nov 30 22:04:51 UTC 2012


Module: Mesa
Branch: master
Commit: 89ba4368fd86778405eea163e2b27812055f0df9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=89ba4368fd86778405eea163e2b27812055f0df9

Author: Kristian Høgsberg <krh at bitplanet.net>
Date:   Fri Nov 30 13:29:17 2012 -0500

egl/wayland: Add invalidate back in eglSwapBuffers()

Commit ca3ed3e024864e91ca3cccc59fb96950e1d079b5 fixed the problem where
eglMakeCurrent would trigger a getbuffer callback that then breaks the
following wl_egl_window_resize() call.  However, we still need to
invalidate buffers in eglSwapBuffers, since in wayland we always swap
buffers, so the dri driver needs to come out and ask us for the next buffer
after each swapbuffer.

Note: this is a candidate for stable branches.

Signed-off-by: Kristian Høgsberg <krh at bitplanet.net>

---

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

diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index 7b90387..7c1aa94 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -606,6 +606,7 @@ dri2_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw)
    }
 
    (*dri2_dpy->flush->flush)(dri2_surf->dri_drawable);
+   (*dri2_dpy->flush->invalidate)(dri2_surf->dri_drawable);
 
    return EGL_TRUE;
 }




More information about the mesa-commit mailing list