Skip to content

Commit 79de55f

Browse files
Bug 1943149 - build(webgpu): update WGPU to db896a86d0db0637149d7012bd865059f8783ec3 r=#webgpu-reviewers!
Differential Revision: https://phabricator.services.mozilla.com/D236030
1 parent 5d74118 commit 79de55f

File tree

142 files changed

+8456
-3082
lines changed

Some content is hidden

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

142 files changed

+8456
-3082
lines changed

.cargo/config.toml.in

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

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"]
43+
[source."git+https://github.com/gfx-rs/wgpu?rev=db896a86d0db0637149d7012bd865059f8783ec3"]
4944
git = "https://github.com/gfx-rs/wgpu"
50-
rev = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
45+
rev = "db896a86d0db0637149d7012bd865059f8783ec3"
5146
replace-with = "vendored-sources"
5247

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

Cargo.lock

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

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 = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
20+
rev = "db896a86d0db0637149d7012bd865059f8783ec3"
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 = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
29+
rev = "db896a86d0db0637149d7012bd865059f8783ec3"
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 = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
36+
rev = "db896a86d0db0637149d7012bd865059f8783ec3"
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 = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
43+
rev = "db896a86d0db0637149d7012bd865059f8783ec3"
4444
features = ["vulkan"]
4545

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

5151
[dependencies.wgh]
5252
package = "wgpu-hal"
5353
git = "https://github.com/gfx-rs/wgpu"
54-
rev = "aa7bec65b90028e4db6ec8def8589b52097d92f9"
54+
rev = "db896a86d0db0637149d7012bd865059f8783ec3"
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 = { version = "0.30", git = "https://github.com/gfx-rs/metal-rs.git", rev = "ef768ff9d7" }
62+
metal = "0.31"
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: commit aa7bec65b90028e4db6ec8def8589b52097d92f9
23+
release: db896a86d0db0637149d7012bd865059f8783ec3 (2025-02-07T04:10:28Z).
2424

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

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

gfx/wgpu_bindings/src/server.rs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub extern "C" fn wgpu_server_new(owner: *mut c_void, use_dxc: bool) -> *mut Glo
125125
"Selecting backends based on dom.webgpu.wgpu-backend pref: {:?}",
126126
backends_pref
127127
);
128-
wgc::instance::parse_backends_from_comma_list(&backends_pref)
128+
wgt::Backends::from_comma_list(&backends_pref)
129129
};
130130

131131
let mut instance_flags = wgt::InstanceFlags::from_build_config().with_env();
@@ -147,8 +147,15 @@ pub extern "C" fn wgpu_server_new(owner: *mut c_void, use_dxc: bool) -> *mut Glo
147147
&wgt::InstanceDescriptor {
148148
backends,
149149
flags: instance_flags,
150-
dx12_shader_compiler,
151-
gles_minor_version: wgt::Gles3MinorVersion::Automatic,
150+
backend_options: wgt::BackendOptions {
151+
gl: wgt::GlBackendOptions {
152+
gles_minor_version: wgt::Gles3MinorVersion::Automatic,
153+
short_circuit_fences: wgt::GlFenceBehavior::Normal,
154+
},
155+
dx12: wgt::Dx12BackendOptions {
156+
shader_compiler: dx12_shader_compiler,
157+
},
158+
},
152159
},
153160
);
154161
let global = Global { global, owner };
@@ -410,9 +417,7 @@ pub unsafe extern "C" fn wgpu_server_adapter_request_device(
410417

411418
path
412419
});
413-
let trace_path = trace_string
414-
.as_ref()
415-
.map(|string| std::path::Path::new(string.as_str()));
420+
let trace_path = trace_string.as_deref();
416421
// TODO: in https://github.com/gfx-rs/wgpu/pull/3626/files#diff-033343814319f5a6bd781494692ea626f06f6c3acc0753a12c867b53a646c34eR97
417422
// which introduced the queue id parameter, the queue id is also the device id. I don't know how applicable this is to
418423
// other situations (this one in particular).
@@ -1797,7 +1802,7 @@ impl Global {
17971802
sample_count: desc.sample_count,
17981803
dimension: desc.dimension,
17991804
format: desc.format,
1800-
usage: wgh::TextureUses::COPY_DST | wgh::TextureUses::COLOR_TARGET,
1805+
usage: wgt::TextureUses::COPY_DST | wgt::TextureUses::COLOR_TARGET,
18011806
memory_flags: wgh::MemoryFlags::empty(),
18021807
view_formats: vec![],
18031808
};

supply-chain/audits.toml

Lines changed: 17 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3451,24 +3451,20 @@ criteria = "safe-to-deploy"
34513451
delta = "22.0.0 -> 23.0.0"
34523452

34533453
[[audits.naga]]
3454-
who = [
3455-
"Jim Blandy <jimb@red-bean.com>",
3456-
"Erich Gubler <erichdongubler@gmail.com>",
3457-
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
3458-
]
3454+
who = "Erich Gubler <erichdongubler@gmail.com>"
34593455
criteria = "safe-to-deploy"
3460-
delta = "23.0.0 -> 23.0.0@git:aa7bec65b90028e4db6ec8def8589b52097d92f9"
3461-
importable = false
3456+
delta = "23.0.0 -> 23.1.0"
34623457

34633458
[[audits.naga]]
34643459
who = "Erich Gubler <erichdongubler@gmail.com>"
34653460
criteria = "safe-to-deploy"
3466-
delta = "23.0.0 -> 23.1.0"
3461+
delta = "23.1.0 -> 24.0.0"
34673462

34683463
[[audits.naga]]
34693464
who = "Erich Gubler <erichdongubler@gmail.com>"
34703465
criteria = "safe-to-deploy"
3471-
delta = "23.1.0 -> 24.0.0"
3466+
delta = "24.0.0 -> 24.0.0@git:db896a86d0db0637149d7012bd865059f8783ec3"
3467+
importable = false
34723468

34733469
[[audits.net2]]
34743470
who = "Mike Hommey <mh+mozilla@glandium.org>"
@@ -5626,19 +5622,15 @@ criteria = "safe-to-deploy"
56265622
delta = "23.0.0 -> 23.0.1"
56275623

56285624
[[audits.wgpu-core]]
5629-
who = [
5630-
"Jim Blandy <jimb@red-bean.com>",
5631-
"Erich Gubler <erichdongubler@gmail.com>",
5632-
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
5633-
]
5625+
who = "Erich Gubler <erichdongubler@gmail.com>"
56345626
criteria = "safe-to-deploy"
5635-
delta = "23.0.1 -> 23.0.1@git:aa7bec65b90028e4db6ec8def8589b52097d92f9"
5636-
importable = false
5627+
delta = "23.0.1 -> 24.0.0"
56375628

56385629
[[audits.wgpu-core]]
56395630
who = "Erich Gubler <erichdongubler@gmail.com>"
56405631
criteria = "safe-to-deploy"
5641-
delta = "23.0.1 -> 24.0.0"
5632+
delta = "24.0.0 -> 24.0.0@git:db896a86d0db0637149d7012bd865059f8783ec3"
5633+
importable = false
56425634

56435635
[[audits.wgpu-hal]]
56445636
who = "Dzmitry Malyshau <kvark@fastmail.com>"
@@ -5714,19 +5706,15 @@ criteria = "safe-to-deploy"
57145706
delta = "23.0.0 -> 23.0.1"
57155707

57165708
[[audits.wgpu-hal]]
5717-
who = [
5718-
"Jim Blandy <jimb@red-bean.com>",
5719-
"Erich Gubler <erichdongubler@gmail.com>",
5720-
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
5721-
]
5709+
who = "Erich Gubler <erichdongubler@gmail.com>"
57225710
criteria = "safe-to-deploy"
5723-
delta = "23.0.1 -> 23.0.1@git:aa7bec65b90028e4db6ec8def8589b52097d92f9"
5724-
importable = false
5711+
delta = "23.0.1 -> 24.0.0"
57255712

57265713
[[audits.wgpu-hal]]
57275714
who = "Erich Gubler <erichdongubler@gmail.com>"
57285715
criteria = "safe-to-deploy"
5729-
delta = "23.0.1 -> 24.0.0"
5716+
delta = "24.0.0 -> 24.0.0@git:db896a86d0db0637149d7012bd865059f8783ec3"
5717+
importable = false
57305718

57315719
[[audits.wgpu-types]]
57325720
who = "Dzmitry Malyshau <kvark@fastmail.com>"
@@ -5797,19 +5785,15 @@ criteria = "safe-to-deploy"
57975785
delta = "22.0.0 -> 23.0.0"
57985786

57995787
[[audits.wgpu-types]]
5800-
who = [
5801-
"Jim Blandy <jimb@red-bean.com>",
5802-
"Erich Gubler <erichdongubler@gmail.com>",
5803-
"Teodor Tanasoaia <ttanasoaia@mozilla.com>",
5804-
]
5788+
who = "Erich Gubler <erichdongubler@gmail.com>"
58055789
criteria = "safe-to-deploy"
5806-
delta = "23.0.0 -> 23.0.0@git:aa7bec65b90028e4db6ec8def8589b52097d92f9"
5807-
importable = false
5790+
delta = "23.0.0 -> 24.0.0"
58085791

58095792
[[audits.wgpu-types]]
58105793
who = "Erich Gubler <erichdongubler@gmail.com>"
58115794
criteria = "safe-to-deploy"
5812-
delta = "23.0.0 -> 24.0.0"
5795+
delta = "24.0.0 -> 24.0.0@git:db896a86d0db0637149d7012bd865059f8783ec3"
5796+
importable = false
58135797

58145798
[[audits.whatsys]]
58155799
who = "Bobby Holley <bobbyholley@gmail.com>"

supply-chain/config.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ 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-
110106
[policy.midir]
111107
audit-as-crates-io = true
112108
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)