GNOME Bugzilla – Bug 726412
use glMapBuffer and friends
Last modified: 2018-11-03 11:29:15 UTC
This allows the possiblity for the GL implementation to give us a pointer to GPU memory that we can write to.
Could you elaborate if this is still relevant ? Thx!
Yes, this still relevant. Instead of having a temporary data pointer inside GstGLMemory, we could simply use the GPU mappable buffer as a data pointer that we can then TexImage2d with. The other optimisation this makes easier is async upload/downloads.
Current status is that this requires explicit outside knowledge that the memory is not going to be mapped in both system memory and GL memory at the same time in order use the glMapBuffer()ed pointer. As a result it must be an opt-in flag on glbasebuffer for limited use cases.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/114.