Use udmabuf for SW rendering
Categories
(Core :: Graphics: WebRender, task)
Tracking
()
People
(Reporter: rmader, Assigned: rmader, NeedInfo)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(4 external files)
Implement the suggestion from https://phabricator.services.mozilla.com/D335847#11665298:
If we want to allocate dmabufs for software rendering it's usually a good idea to use the udmabuf interface, ensuring the buffer is backed by system memory and has corresponding performance characteristics (essentially shmem on steroids) - compared to allocating through the GPU driver, potentially resulting in a VRAM-backed buffer with terrible performance.
This has recently become popular in various projects, including Gstreamer, KWin, Weston.
Related:
- https://zamundaaa.github.io/wayland/2026/05/06/making-wl-shm-fast.html
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8540 -> https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/13129#note_3796067
Note: once we have the infrastructure for udmabuf in place we can reuse it to speed up various use-cases, including e.g. software-decoded video
| Assignee | ||
Updated•7 days ago
|
| Assignee | ||
Comment 1•4 days ago
|
||
| Assignee | ||
Comment 2•4 days ago
|
||
| Assignee | ||
Comment 3•4 days ago
|
||
| Assignee | ||
Comment 4•4 days ago
|
||
| Assignee | ||
Comment 5•4 days ago
|
||
The patches above are a first rough (but working) draft for a udmabuf implementation. Just sharing for visibility and in case anyone wants to play around / test them against issues (such as bug 2097947)
Comment 6•1 day ago
|
||
Let's make it a main bug for the udmabuf support. Looks like we face mem leaks on KDE when udmabuf is used.
Updated•1 day ago
|
Updated•1 day ago
|
Updated•1 day ago
|
Comment 7•1 day ago
|
||
Robert, I thin we can land the basic support but I'd like to share more parts with dmabuf. DIUC that udmabuf is from user space perspective just a dmabuf variant?
Description
•