Open Bug 1708022 Opened 3 years ago Updated 11 months ago

Use DMA buffers for WebGPU presentation on Linux

Categories

(Core :: Graphics: WebGPU, enhancement, P3)

All
Linux
enhancement

Tracking

()

People

(Reporter: kvark, Unassigned)

References

(Depends on 1 open bug, Blocks 3 open bugs)

Details

On Linux, DMA buffers is the way to share textures rendered by WebGPU to WebRender.

We could create a ring of DMA buffers, each associated with a separate external image ID. The canvas would still have a single ImageKey, but we'd switch it to the appropriate external image ID on presentation.

See RenderDMABUFTextureHost

We'll have to check if DMABufs are enabled.

This requires gfx.x11-egl.force-enabled option.

Severity: -- → S3
Priority: -- → P3
Blocks: webgpu-phase-2
No longer blocks: webgpu-v1
Depends on: 1844779
You need to log in before you can comment on or make changes to this bug.