WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
Bug 196200
[Texmap][GStreamer]: Map video frames as early as possible and wait via GL sync meta before using texture ids
https://bugs.webkit.org/show_bug.cgi?id=196200
Summary
[Texmap][GStreamer]: Map video frames as early as possible and wait via GL sy...
Víctor M. Jáquez L.
Reported
2019-03-25 04:02:54 PDT
This report is inspired on
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/commit/b5aa304f201d0805de2b33ab97d293654baa12cd?merge_request_iid=156
We should fence [1] the texture to render in its internal GL context, and wait [2] for its rendering in our application GL context, otherwise the GL pipeline could be working on the texture when painting it. 1.
https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glFenceSync.xhtml
2.
https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glWaitSync.xhtml
Attachments
Add attachment
proposed patch, testcase, etc.
Víctor M. Jáquez L.
Comment 1
2019-04-15 11:02:54 PDT
Well, I guess this enhancement doesn't make much sense since it uses OpenGL API 3.5 while webkitgtk uses 3.0
Philippe Normand
Comment 2
2019-06-19 09:43:27 PDT
Could this be useful for WPE though?
Philippe Normand
Comment 3
2019-06-20 01:20:17 PDT
For EGL there's an equiivalent but it doesn't seem to be supported in GStreamer:
https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_fence_sync.txt
Víctor M. Jáquez L.
Comment 4
2019-06-20 02:48:52 PDT
(In reply to Philippe Normand from
comment #3
)
> For EGL there's an equiivalent but it doesn't seem to be supported in > GStreamer: > >
https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_fence_sync.txt
If I understand correctly, at least in i915, the implementation is the same for both
https://gitlab.freedesktop.org/mesa/mesa/blob/master/src/mesa/drivers/dri/i915/intel_syncobj.c#L30
And in another spec I read that the glFenceSync spec is newer, thus it is expected to cover the EGL usage.
Víctor M. Jáquez L.
Comment 5
2019-06-27 06:45:40 PDT
Reopening because it's required for other context, specially on EGL.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug