[Bug 784494] glupload: Put directviv upload high priority than dma upload

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 4 06:14:02 UTC 2017


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

--- Comment #5 from Haihua Hu <jared.hu at nxp.com> ---
(In reply to Sebastian Dröge (slomo) from comment #4)
> That dmabuf is implemented less efficient than directviv sounds weird. Can't
> both go through exactly the same code paths internally, and basically have
> the dmabuf carry the same information as the physical memory buffers?

On early imx8DV platform, there is no VPU(video process unit)and software
decode can only output system memory buffer. But it realy has an dmabuf
allocator called ion. To avoid glupload go through raw data upload, we did a
memory copy in dmabuf upload and copy system memory to a new allocator dmabuf
then pass it to GPU. 

It also works on imx6 because imx6 has no ion and will fail at allocator
dmabuf. Then it will fallback to directviv.

All imx platform share the same code and the recent imx8 platform has implement
VPU to do video decode and support physical memory buffer but it also has ion
dmabuf allocator. Then it will go through dmabuf upload. This is not right.
Actually we need check if the buffer is physical memory buffer first and then
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