Open Bug 2097643 (udmabuf) Opened 7 days ago Updated 1 day ago

Use udmabuf for SW rendering

Categories

(Core :: Graphics: WebRender, task)

task

Tracking

()

ASSIGNED

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:

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

See Also: → 1929469
Status: NEW → ASSIGNED
See Also: → 2097947

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)

Let's make it a main bug for the udmabuf support. Looks like we face mem leaks on KDE when udmabuf is used.

Summary: Use udmabuf for CreateMappableDMABuf() → Use udmabuf on Firefox
Summary: Use udmabuf on Firefox → Use udmabuf for SW rendering

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?

Flags: needinfo?(robert.mader)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: