<div dir="ltr">Thanks a lot.<div>Would you know if/when Wayland will support OpenGL?</div><div><br></div><div>Rainer</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 20, 2016 at 4:46 PM, Daniel Stone <span dir="ltr"><<a href="mailto:daniel@fooishbar.org" target="_blank">daniel@fooishbar.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Rainer,<br>
<span class=""><br>
On 17 June 2016 at 22:00, Rainer Hochecker <<a href="mailto:fernetmenta@kodi.tv">fernetmenta@kodi.tv</a>> wrote:<br>
> I agree. GLX_OML_sync_control fulfils all our requirements apart from being<br>
> available for EGL. It would be great to have it available for EGL. In regard<br>
> to Wayland this is really important. For the time being Kodi stopped<br>
> supporting Wayland because a/v sync is not possible on that platform.<br>
<br>
</span>This isn't true. For Wayland, you can use the wp_presentation_time extension:<br>
<a href="https://cgit.freedesktop.org/wayland/wayland-protocols/tree/stable/presentation-time/presentation-time.xml" rel="noreferrer" target="_blank">https://cgit.freedesktop.org/wayland/wayland-protocols/tree/stable/presentation-time/presentation-time.xml</a><br>
<br>
If you're using the zwp_linux_dmabuf extension directly, then you can<br>
easily and obviously use the extension to get feedback, and there are<br>
examples of using this. But even if you're using EGL, Wayland's EGL<br>
client platform has the property that a wl_surface::commit request<br>
must be issued from inside eglSwapBuffers. So you can make use of this<br>
to issue a presentation_time feedback request immediately before<br>
calling eglSwapBuffers, which will return a unique event giving you<br>
the exact time that the buffer swap was actually displayed on screen.<br>
This is far better than vblank requests which only give you hardware<br>
clock ticks, and tell you nothing about actual display time.<br>
<br>
I do discuss this with Peter occasionally, but please get in touch if<br>
you feel there is anything else missing, because we have gone to great<br>
lengths to make Wayland as good as it possibly can be for exactly<br>
these usecases.<br>
<br>
Cheers,<br>
Daniel<br>
</blockquote></div><br></div>