[Bug 711155] wayland: add wl_drm support to wayland sink

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Aug 28 06:18:55 PDT 2015


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

--- Comment #24 from Daniel Stone <daniel at fooishbar.org> ---
(In reply to Nicolas Dufresne (stormer) from comment #20)
> (In reply to Benjamin Gaignard from comment #17)
> > Until now wayland dmabuf protocol doesn't propose to allocate the memory so
> > what we have done is to use libdrm to allocate dumb buffers and get a file
> > descriptor with prime interface. I think it is fair enough since most (even
> > all) systems using wayland are drm based.
> 
> Which is Intel specific, and most likely not mappable on any other driver.
> I'm sorry, but adding DRM code in there was and is still a bad idea.

Dumb buffers are a generic/independent API that work on all drivers, and they
_guarantee_ that you can mmap() them.

However, you're not supposed to use them for hardware-accelerated rendering,
which you could argue media decode engines is. So passing them to V4L2 will
almost certainly work, but is quite iffy from an interface purists' point of
view. Dave Airlie will probably get pretty upset about that at some stage.

[So, back to the generic allocator then ...]

-- 
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