Skip to content

Commit 0a66124

Browse files
committed
Bug 1941540 - Update wgpu to revision aa7bec65b90028e4db6ec8def8589b52097d92f9. r=webgpu-reviewers,glandium,supply-chain-reviewers,ErichDonGubler,nical
Differential Revision: https://phabricator.services.mozilla.com/D234312
1 parent f29519f commit 0a66124

File tree

217 files changed

+9679
-3565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+9679
-3565
lines changed

.cargo/config.toml.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ git = "https://github.com/franziskuskiefer/cose-rust"
4040
rev = "43c22248d136c8b38fe42ea709d08da6355cf04b"
4141
replace-with = "vendored-sources"
4242

43-
[source."git+https://github.com/gfx-rs/wgpu?rev=15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"]
43+
[source."git+https://github.com/gfx-rs/metal-rs.git?rev=ef768ff9d7"]
44+
git = "https://github.com/gfx-rs/metal-rs.git"
45+
rev = "ef768ff9d7"
46+
replace-with = "vendored-sources"
47+
48+
[source."git+https://github.com/gfx-rs/wgpu?rev=aa7bec65b90028e4db6ec8def8589b52097d92f9"]
4449
git = "https://github.com/gfx-rs/wgpu"
45-
rev = "15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
50+
rev = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
4651
replace-with = "vendored-sources"
4752

4853
[source."git+https://github.com/glandium/rust-objc?rev=4de89f5aa9851ceca4d40e7ac1e2759410c04324"]

Cargo.lock

Lines changed: 35 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/rust/dummy-web/js-sys/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ license = "MIT OR Apache-2.0"
66

77
[lib]
88
path = "lib.rs"
9+
10+
[features]
11+
default = ["std"]
12+
std = []

build/rust/dummy-web/web-sys/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ path = "lib.rs"
99

1010
# This list is taken from web-sys 0.3.70's Cargo.toml
1111
[features]
12+
default = ["std"]
13+
std = []
1214
AbortController = []
1315
AbortSignal = ["EventTarget"]
1416
AddEventListenerOptions = []

dom/webgpu/mochitest/test_compilation_message_pos.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
is(
3939
message,
4040
`
41-
Shader '' parsing error: expected global item ('struct', 'const', 'var', 'alias', ';', 'fn') or the end of the file, found '?'
41+
Shader '' parsing error: expected global item (\`struct\`, \`const\`, \`var\`, \`alias\`, \`fn\`, \`diagnostic\`, \`enable\`, \`requires\`, \`;\`) or the end of the file, found "?"
4242
┌─ wgsl:1:12
4343
4444
1 │ /*🐈🐈🐈🐈🐈🐈🐈*/?
45-
│ ^ expected global item ('struct', 'const', 'var', 'alias', ';', 'fn') or the end of the file
45+
│ ^ expected global item (\`struct\`, \`const\`, \`var\`, \`alias\`, \`fn\`, \`diagnostic\`, \`enable\`, \`requires\`, \`;\`) or the end of the file
4646
4747
`
4848
);

gfx/wgpu_bindings/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ default = []
1717
[dependencies.wgc]
1818
package = "wgpu-core"
1919
git = "https://github.com/gfx-rs/wgpu"
20-
rev = "15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
20+
rev = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
2121
# TODO: remove the replay feature on the next update containing https://github.com/gfx-rs/wgpu/pull/5182
2222
features = ["serde", "replay", "trace", "strict_asserts", "wgsl", "api_log_info", "indirect-validation"]
2323

@@ -26,40 +26,40 @@ features = ["serde", "replay", "trace", "strict_asserts", "wgsl", "api_log_info"
2626
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.wgc]
2727
package = "wgpu-core"
2828
git = "https://github.com/gfx-rs/wgpu"
29-
rev = "15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
29+
rev = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
3030
features = ["metal"]
3131

3232
# We want the wgpu-core Direct3D backends on Windows.
3333
[target.'cfg(windows)'.dependencies.wgc]
3434
package = "wgpu-core"
3535
git = "https://github.com/gfx-rs/wgpu"
36-
rev = "15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
36+
rev = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
3737
features = ["dx12"]
3838

3939
# We want the wgpu-core Vulkan backend on Linux and Windows.
4040
[target.'cfg(any(windows, all(unix, not(any(target_os = "macos", target_os = "ios")))))'.dependencies.wgc]
4141
package = "wgpu-core"
4242
git = "https://github.com/gfx-rs/wgpu"
43-
rev = "15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
43+
rev = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
4444
features = ["vulkan"]
4545

4646
[dependencies.wgt]
4747
package = "wgpu-types"
4848
git = "https://github.com/gfx-rs/wgpu"
49-
rev = "15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
49+
rev = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
5050

5151
[dependencies.wgh]
5252
package = "wgpu-hal"
5353
git = "https://github.com/gfx-rs/wgpu"
54-
rev = "15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
54+
rev = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
5555
features = ["oom_panic", "device_lost_panic", "internal_error_panic"]
5656

5757
[target.'cfg(windows)'.dependencies]
5858
windows = { version = "0.58", default-features = false, features = ["Win32_Graphics_Direct3D12"]}
5959

6060
[target.'cfg(target_os = "macos")'.dependencies]
6161
objc = "0.2"
62-
metal = "0.30"
62+
metal = { version = "0.30", git = "https://github.com/gfx-rs/metal-rs.git", rev = "ef768ff9d7" }
6363
io-surface = "0.15"
6464

6565
[dependencies]

gfx/wgpu_bindings/moz.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ origin:
2020

2121
# Human-readable identifier for this version/release
2222
# Generally "version NNN", "tag SSS", "bookmark SSS"
23-
release: 15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6 (2025-01-03T00:48:54Z).
23+
release: commit aa7bec65b90028e4db6ec8def8589b52097d92f9
2424

2525
# Revision to pull in
2626
# Must be a long or short commit SHA (long preferred)
27-
revision: 15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6
27+
revision: aa7bec65b90028e4db6ec8def8589b52097d92f9
2828

2929
license: ['MIT', 'Apache-2.0']
3030

gfx/wgpu_bindings/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ pub extern "C" fn wgpu_server_new(owner: *mut c_void, use_dxc: bool) -> *mut Glo
144144

145145
let global = wgc::global::Global::new(
146146
"wgpu",
147-
wgt::InstanceDescriptor {
147+
&wgt::InstanceDescriptor {
148148
backends,
149149
flags: instance_flags,
150150
dx12_shader_compiler,

supply-chain/audits.toml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3154,6 +3154,11 @@ who = "Erich Gubler <erichdongubler@gmail.com>"
31543154
criteria = "safe-to-deploy"
31553155
delta = "0.29.0 -> 0.30.0"
31563156

3157+
[[audits.metal]]
3158+
who = "Teodor Tanasoaia <ttanasoaia@mozilla.com>"
3159+
criteria = "safe-to-deploy"
3160+
delta = "0.30.0 -> 0.30.0@git:ef768ff9d742ae6a0f4e83ddc8031264e7d460c4"
3161+
31573162
[[audits.midir]]
31583163
who = "Bobby Holley <bobbyholley@gmail.com>"
31593164
criteria = "safe-to-deploy"
@@ -3418,11 +3423,11 @@ delta = "22.0.0 -> 23.0.0"
34183423
[[audits.naga]]
34193424
who = [
34203425
"Jim Blandy <jimb@red-bean.com>",
3421-
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
34223426
"Erich Gubler <erichdongubler@gmail.com>",
3427+
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
34233428
]
34243429
criteria = "safe-to-deploy"
3425-
delta = "23.0.0 -> 23.0.0@git:15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
3430+
delta = "23.0.0 -> 23.0.0@git:aa7bec65b90028e4db6ec8def8589b52097d92f9"
34263431
importable = false
34273432

34283433
[[audits.net2]]
@@ -4619,6 +4624,16 @@ who = "Ben Dean-Kawamura <bdk@mozilla.com>"
46194624
criteria = "safe-to-deploy"
46204625
delta = "0.10.0 -> 0.11.1"
46214626

4627+
[[audits.strum]]
4628+
who = "Teodor Tanasoaia <ttanasoaia@mozilla.com>"
4629+
criteria = "safe-to-deploy"
4630+
delta = "0.25.0 -> 0.26.3"
4631+
4632+
[[audits.strum_macros]]
4633+
who = "Teodor Tanasoaia <ttanasoaia@mozilla.com>"
4634+
criteria = "safe-to-deploy"
4635+
delta = "0.25.3 -> 0.26.4"
4636+
46224637
[[audits.subtle]]
46234638
who = "Simon Friedberger <simon@mozilla.com>"
46244639
criteria = "safe-to-deploy"
@@ -5568,11 +5583,11 @@ delta = "23.0.0 -> 23.0.1"
55685583
[[audits.wgpu-core]]
55695584
who = [
55705585
"Jim Blandy <jimb@red-bean.com>",
5571-
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
55725586
"Erich Gubler <erichdongubler@gmail.com>",
5587+
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
55735588
]
55745589
criteria = "safe-to-deploy"
5575-
delta = "23.0.1 -> 23.0.1@git:15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
5590+
delta = "23.0.1 -> 23.0.1@git:aa7bec65b90028e4db6ec8def8589b52097d92f9"
55765591
importable = false
55775592

55785593
[[audits.wgpu-hal]]
@@ -5651,11 +5666,11 @@ delta = "23.0.0 -> 23.0.1"
56515666
[[audits.wgpu-hal]]
56525667
who = [
56535668
"Jim Blandy <jimb@red-bean.com>",
5654-
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
56555669
"Erich Gubler <erichdongubler@gmail.com>",
5670+
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
56565671
]
56575672
criteria = "safe-to-deploy"
5658-
delta = "23.0.1 -> 23.0.1@git:15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
5673+
delta = "23.0.1 -> 23.0.1@git:aa7bec65b90028e4db6ec8def8589b52097d92f9"
56595674
importable = false
56605675

56615676
[[audits.wgpu-types]]
@@ -5729,11 +5744,11 @@ delta = "22.0.0 -> 23.0.0"
57295744
[[audits.wgpu-types]]
57305745
who = [
57315746
"Jim Blandy <jimb@red-bean.com>",
5732-
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
57335747
"Erich Gubler <erichdongubler@gmail.com>",
5748+
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
57345749
]
57355750
criteria = "safe-to-deploy"
5736-
delta = "23.0.0 -> 23.0.0@git:15a77b525c6dc76b39b8bd191d0ddfe21ddbcef6"
5751+
delta = "23.0.0 -> 23.0.0@git:aa7bec65b90028e4db6ec8def8589b52097d92f9"
57375752
importable = false
57385753

57395754
[[audits.whatsys]]

supply-chain/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ notes = "This was originally servo code which Bobby Holley put on crates.io some
103103
audit-as-crates-io = false
104104
notes = "This is a first-party crate which is also published to crates.io. We certify audits for this crate as part of the documented release process, but that step happens after the version bump lands on central so we don't enforce it here."
105105

106+
[policy.metal]
107+
audit-as-crates-io = true
108+
notes = "wgpu-hal pins this crate."
109+
106110
[policy.midir]
107111
audit-as-crates-io = true
108112
notes = "This is a pinned version of the upstream code, presumably to get a fix that hadn't been released yet. We should consider switching to the latest official release."

0 commit comments

Comments
 (0)