Open Bug 1818042 (webgpu-workers) Opened 1 year ago Updated 26 days ago

[meta] Re-enable WebGPU in worker threads

Categories

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

enhancement

Tracking

()

People

(Reporter: jimb, Unassigned)

References

(Depends on 2 open bugs, Blocks 3 open bugs)

Details

(Keywords: meta)

Per spec, WebGPU is available in web workers, both for running compute shaders and for rendering to OffscreenCanvas elements. However, Bug 1808820 disabled WebGPU in workers, because that is not part of our limited goals for our first milestone, Bug 1746245.

Fixing this bug will entail actually fixing the problems described in bug 1808820: we need our WebGPU implementation to correctly handle the parent window being closed, not just be inaccessible due to being in a web worker.

See Also: → 1808820
Alias: webgpu-workers
Duplicate of this bug: 1830677
Severity: -- → S3
Priority: -- → P3
Blocks: webgpu-v1
No longer blocks: webgpu-mvp
Depends on: 1845859
Depends on: 1844861
Depends on: 1696216
Blocks: webgpu-phase-2
No longer blocks: webgpu-v1

Project that i am working on heavily uses workers and relies on WebGPU compute pipeline. What is the expected timeline for enabling webgpu in worker on linux?

Thx

(In reply to sk.bizport from comment #3)

Project that i am working on heavily uses workers and relies on WebGPU compute pipeline. What is the expected timeline for enabling webgpu in worker on linux?

Thx

There should be a new pref dom.webgpu.workers.enabled that you can flip in nightly if you want to test using workers. I don't have a timeline on when it will get enabled by default, but hopefully this unblocks you. If you run into any issues with workers, please file bugs against this metabug! Thanks :)

Duplicate of this bug: 1882960
Keywords: meta
Depends on: 1882960
No longer duplicate of this bug: 1882960
Summary: Re-enable WebGPU in worker threads → [meta] Re-enable WebGPU in worker threads
Blocks: 1882960
No longer depends on: 1882960
Blocks: 1886808
You need to log in before you can comment on or make changes to this bug.