[Wayland-bugs] [Bug 97353] Wayland lacks cross-process synchronisation
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 17 16:25:07 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=97353
--- Comment #21 from Daniel Stone <daniel at fooishbar.org> ---
(In reply to Tomek Bury from comment #20)
> (In reply to Daniel Stone from comment #19)
> > Buffer exchange between multiple processes, and synchronisation between them
> > (cf. eglWaitNative), is an explicit goal of EGL.
>
> No, it isn't. The single "address space" limit is all over EGL spec.
>
> The eglWaitNative is a counterpart of eglWaitGL. It's only to synchronise
> access form inside and outside GL(ES), not across processes.
EGL was mostly written by copying GLX and changing a few terms around.
eglWaitNative is the direct analog of glXWaitX (the documentation of which
explicitly mentions XSync), and the required implementation of eglWaitNative on
X11 is glXWaitX, which necessarily involves crossing a process boundary.
EGL objects - as visible to clients - are not shareable across process
contexts. But this does not mean that EGL calls are required to never do
anything which could cross a process boundary, because this means that EGL
could never work on Wayland, X11, Mir, Android, OS X / iOS, or Windows.
Implementing support for any winsys apart from fbdev or GBM necessarily imposes
requirements on cross-process co-ordination; this includes exporting
synchronisation objects between processes. If EGL banned cross-process fencing,
then glFinish would be mandatory as a part of eglSwapBuffers. This is clearly
not the case.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160817/01e33ceb/attachment.html>
More information about the wayland-bugs
mailing list