Bug 237649 (DMA-BUF) - [Meta][Linux] Adoption of DMABuf as a reference buffer sharing mechanism
Summary: [Meta][Linux] Adoption of DMABuf as a reference buffer sharing mechanism
Status: NEW
Alias: DMA-BUF
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on: 236635 237759 240636 235946 236436 236520 236607 236637 236836 236883 237199 237328 237606 237758 237883 237974 238017 238110 238141 238199 238200 238539 239037 239038 240276 240313 240314 240392 240633 240637 241119 241326 241462 241850 242108 242938 252988 253085 253244 253245
Blocks: 238593 244472
  Show dependency treegraph
Reported: 2022-03-09 04:17 PST by Zan Dobersek
Modified: 2023-03-16 05:06 PDT (History)
7 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2022-03-09 04:17:37 PST
We want to have an efficient way of integrating content like WebGL, WebGPU, HTML5 Canvas and Media between each such subsystem as well as deeper in the graphics/display pipeline. Undergoing architectural changes also impose the necessity of cross-process migration for these buffers.

On Linux, DMABuf seems an ideal reference solution. This would allow ANGLE to be used to render into DMABuf objects. GStreamer pipelines with hardware decoders outputting DMABufs would be most efficient to handle, while raw decoded data from fallback software decoders would be manually uploaded into dmabufs.

DMABufs aren't universally available. For other platforms, we would require equivalent mechanisms (like e.g. AHardwareBuffer on Android).

This is a tracking bug for all the relevant changes and regressions coming from this work.
Comment 1 Radar WebKit Bug Importer 2022-03-16 05:18:17 PDT