Page MenuHomePhabricator

Bug 2031993 - Update `wgpu` to revision 0b4bdaf9cea213ce614405a834ff049b9dfba103. r=#webgpu-reviewers
ClosedPublic

Authored by teoxoy on Apr 15 2026, 12:53 PM.
Referenced Files
Unknown Object (File)
Tue, Jun 2, 1:39 PM
Unknown Object (File)
Tue, Jun 2, 8:10 AM
Unknown Object (File)
Tue, Jun 2, 4:17 AM
Unknown Object (File)
Tue, Jun 2, 3:30 AM
Unknown Object (File)
Tue, Jun 2, 1:30 AM
Unknown Object (File)
Tue, Jun 2, 1:30 AM
Unknown Object (File)
Mon, Jun 1, 8:37 PM
Unknown Object (File)
Sat, May 30, 9:18 AM

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
smaug added 1 blocking reviewer(s): webgpu-reviewers.
afranchuk accepted this revision as: Restricted Project.Apr 15 2026, 1:45 PM

Code analysis found 5 defects in diff 1250868:

  • 1 defect found by cargo-audit (Mozlint)
  • 4 defects found by clang-format (Mozlint)
WARNING: Found 5 defects (warning level) that can be dismissed.

You can run this analysis locally with:

  • ./mach lint --warnings --outgoing

If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 1250868.

aleiserson added a subscriber: aleiserson.

The cargo-audit warning about rand is unrelated (and my conclusion when I looked last week was that the unsoundness doesn't affect Firefox), but the clang-format warnings seem worth fixing.

dom/webgpu/RenderBundleEncoder.h
79–80

(and also for render passes)

third_party/rust/wgpu-types/src/render.rs
743

There is a check in wgpu_bindings::command::replay_render_pass that blocks LoadOpDontCare, that maybe could be removed now, although I might keep it as relatively cheap insurance. Even if we do keep it, it's worth updating the comment "Explicitly forbid LoadOp::DontCare, until wgpu#8780 is resolved." to be clear that it is intentionally kept as insurance.

This revision is now accepted and ready to land.Apr 16 2026, 5:36 PM
teoxoy added inline comments.
third_party/rust/wgpu-types/src/render.rs
743

I updated the comment.

Ideally we should have this behind a native only feature and wgpu-core should validate that it's not used unless the feature is enabled. I opened https://github.com/gfx-rs/wgpu/issues/9436.

teoxoy marked an inline comment as done.

Code analysis found 4 defects in diff 1251808:

  • 1 defect found by cargo-audit (Mozlint)
  • 3 defects found by clang-format (Mozlint)
WARNING: Found 4 defects (warning level) that can be dismissed.

You can run this analysis locally with:

  • ./mach lint --warnings --outgoing

If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 1251808.