[Wayland-bugs] [Bug 98731] EGL client behaviour too undefined

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 15 18:51:39 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98731

--- Comment #8 from Miguel A. Vico <mvicomoya at nvidia.com> ---
For EGLStreams, eglSwapBuffers() is too late because we rely on
wl_surface.attach + wl_surface.commit to have the compositor attach a consumer
to the stream so that the client can attach the EGLSurface producer that will
be returned to the application as the EGL platform window surface.

These first wl_surface.attach + wl_surface.commit don't encode any "new buffer
content available" message though, which basically means we are abusing these
interfaces.

We will extend our wayland protocol to add the appropriate interfaces for
setting EGLStreams up without relying on wl_surface.attach + wl_surface.commit.


However, I don't think forcing a wl_surface.attach + wl_surface.commit to
strictly happen inside eglSwapBuffers() is correct, and will cause other
interaction issues with, for instance, EGL_NV_stream_fifo_synchronous.

We already have some use cases where fifo_synchronous is used to defer
wl_surface.attach + wl_surface.damage + wl_surface.commit until the frame is
finished.

I think those are legitimate use cases that we must take into account.

-- 
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/20161115/97e9ddda/attachment.html>


More information about the wayland-bugs mailing list