Closed Bug 1806699 Opened 1 year ago Closed 1 year ago

WebIDL for WebGPU indirect draw/compute calls should be removed until validation is implemented

Categories

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

defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: jimb, Assigned: jimb)

References

Details

Attachments

(1 file)

At present there is nothing to prevent invalid indices from being passed in the indirectBuffer arguments to the WebGPU drawIndirect and dispatchWorkgroupsIndirect device methods. These methods should be removed from the WebGPU WebIDL until that validation is implemented.

Bug 1786566 covers the validation work.

An alternative is to gate them behind a pref, for example "dom.webgpu.draw-indirect". I see annotations like that already in our webidl: https://searchfox.org/mozilla-central/rev/abf6758ed833c203f84703aa2e3e3d317571b1e9/dom/webidl/WebGPU.webidl#49

The severity field is not set for this bug.
:jimb, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jimb)
Severity: -- → S3
Flags: needinfo?(jimb)
Priority: -- → P1
Assignee: nobody → jimb
Status: NEW → ASSIGNED
Pushed by jblandy@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e3689ce179c1
Make WebGPU indirect dispatch/draw pref-enabled. r=jgilbert,webidl,smaug
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: