Re: [Mesa-dev] [PATCH v2] egl/wayland: Avoid race conditions when on non-main thread

2016-10-17 Thread Emil Velikov
On 16 October 2016 at 14:55, Daniel Stone wrote: > With those fixed, assuming we're fine with an increased hard dep: Wayland 1.11 has been out for a 3+ months so it's perfectly reasonable imho. -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop

Re: [Mesa-dev] [PATCH v2] egl/wayland: Avoid race conditions when on non-main thread

2016-10-16 Thread Daniel Stone
Hi Jonas, On 24 June 2016 at 03:46, Jonas Ådahl wrote: > @@ -74,9 +74,8 @@ roundtrip(struct dri2_egl_display *dri2_dpy) > struct wl_callback *callback; > int done = 0, ret = 0; > > - callback = wl_display_sync(dri2_dpy->wl_dpy); > + callback = wl_display_sync(dri2_dpy->wl_dpy_wrapper)

Re: [Mesa-dev] [PATCH v2] egl/wayland: Avoid race conditions when on non-main thread

2016-10-14 Thread Emil Velikov
[Cc-ing Daniel/Pekka] Hi all, On 24 June 2016 at 03:46, Jonas Ådahl wrote: > When EGL is used on some other thread than the thread that drives the > main wl_display queue, the Wayland EGL dri2 implementation is > vulnerable to a race condition related to display round trips and global > object a