Closed Bug 1808602 Opened 2 years ago Closed 1 year ago

Add prefs to limit WebGPU `requestAdapters` to return only specific adapters

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: jimb, Assigned: jimb, NeedInfo)

References

Details

Attachments

(1 file)

For testing purposes (fuzzer test case reduction, for example), it would valuable to have a pref that forces GPU.requestAdapter to only consider one specific backend.

This comment probably marks where the check should go.

Blocks: webgpu-mvp
No longer blocks: webgpu-v1
Blocks: webgpu-v1
No longer blocks: webgpu-mvp
Priority: P3 → P2

When this is implemented, let :jkratzer know.

Tyson says that if the pref selects something that isn't available on the current platform, WebGPU should just fall back to something reasonable, since the fuzzing people don't have an easy way to restrict pref values to something appropriate to the platform.

Blocks: webgpu-in-nightly
No longer blocks: webgpu-v1
Priority: P2 → P1
Assignee: nobody → jimb
Status: NEW → ASSIGNED
Attachment #9324519 - Attachment description: Bug 1808602: Implement 'dom.webgpu.wgpu_backend' pref. r?jgilbert → Bug 1808602: Implement 'dom.webgpu.wgpu-backend' pref. r?jgilbert
Attachment #9324519 - Attachment description: Bug 1808602: Implement 'dom.webgpu.wgpu-backend' pref. r?jgilbert → Bug 1808602: Implement 'dom.webgpu.wgpu-backend' pref. r?jrmuizel
Pushed by jblandy@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/07b81afaa59e
Implement 'dom.webgpu.wgpu-backend' pref. r=jrmuizel

Backed out for causing python failure on test_generate_static_pref_list.py

Backout link

Push with failures

Failure log

Flags: needinfo?(jimb)
Pushed by jblandy@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/27f1b00025ab
Implement 'dom.webgpu.wgpu-backend' pref. r=jrmuizel
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Duplicate of this bug: 1808575
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: