[Bug 768794] ion: DMA Buf allocator based on ion

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Jul 16 13:52:53 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=768794

--- Comment #5 from kevin <kevinbing.song at gmail.com> ---
I will fix issues you mentioned in 1) and 2).

DMABuf allocator based on ION can be used in below two case.

gst-launch-1.0 videotestsrc ! glimagesink
gst-launch-1.0 ... ! gldownloadelement ! filesink

As EGL on Linux can create EGL image from DMA FD. This means GPU can import
DMABuf, but can't export DMABuf. So need ION driver allocate DMABuf. On one
hand, GPU can import DMABuf with EGL image. on there hand, CPU can access
DMABuf after mmap DMABuf. So we can avoid video memory copy.

We already implemented gldownloadelement based on ION allocator. Will implement
glupload based on ION allocator if our idea is reasonable. Our implement
include gldownloadelement propose one GL buffer pool based on ION allocator to
upstream element and send one dmabuf buffer to downstream element.
gluploadelement will propose GL buffer pool and dmabuf pool to upstream
element. Upstream element can select dmabuf pool and send dmabuf buffer to
gluploadelement even if the upstream element can't export DMABuf.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list