-
- Downloads
Bug 1762730: Update wgpu-core, wgpu-hal, and wgpu-types to 75e82afd. r=jgilbert
New versions of several crates are introduced to third_party/rust, by changing the versions requested in `gfx/wgpu_bindings/Cargo.toml` and running `mach vendor rust`: - `wgpu-core`, `wgpu-hal`, and `wgpu-types`, as used by `wgpu_bindings` - `naga`, `ash`, and `metal`, as used by the above These are all exact copies of the upstream sources, at the git revisions listed in `.cargo/config.in`. This brings in fixes for some upstream `wgpu` bugs that were fuzzblockers: - Compute pipelines never freed at runtime, leaking memory #2564 https://github.com/gfx-rs/wgpu/issues/2564 - Device::drop doesn't actually free the device when using backend::direct::Context #2563 https://github.com/gfx-rs/wgpu/issues/2563 The Firefox sources also needed some adjustments to catch up with upstream changes: - The C type `mozilla::webgpu::ffi::WGPUTextureFormat` is now a struct containing a tag enum and a union, not just an enum. This is needed for [gfx-rs/wgpu#2477](https://github.com/gfx-rs/wgpu/pull/2477). (Note that Firefox's `WebGPU.webidl` is behind the current spec, so even though the newest ASTC texture formats are supported in `wgpu`, they're not available in Firefox yet.) - `wgpu` got a new feature, `id32`, which cbindgen needed to be told about so that it would generate preprocessor-protected code like this: #if defined(WGPU_FEATURE_ID32) typedef uint32_t WGPUNonZeroId; #endif #if !defined(WGPU_FEATURE_ID32) typedef uint64_t WGPUNonZeroId; #endif instead of just spitting out two conflicting definitions of `WGPUNonZeroId`. - The `wgpu_core::hub::IdentityHandlerFactory` trait's `spawn` method no longer takes a `min_index` argument. (Our implementations of that trait never used that argument anyway, so this was easy to accommodate.) Differential Revision: https://phabricator.services.mozilla.com/D142779
Showing
- .cargo/config.in 8 additions, 3 deletions.cargo/config.in
- Cargo.lock 9 additions, 9 deletionsCargo.lock
- dom/webgpu/RenderBundleEncoder.cpp 2 additions, 2 deletionsdom/webgpu/RenderBundleEncoder.cpp
- dom/webgpu/ipc/WebGPUChild.cpp 113 additions, 54 deletionsdom/webgpu/ipc/WebGPUChild.cpp
- gfx/wgpu_bindings/Cargo.toml 3 additions, 3 deletionsgfx/wgpu_bindings/Cargo.toml
- gfx/wgpu_bindings/cbindgen.toml 1 addition, 0 deletionsgfx/wgpu_bindings/cbindgen.toml
- gfx/wgpu_bindings/src/identity.rs 16 additions, 16 deletionsgfx/wgpu_bindings/src/identity.rs
- third_party/rust/ash/.cargo-checksum.json 1 addition, 1 deletionthird_party/rust/ash/.cargo-checksum.json
- third_party/rust/ash/Cargo.toml 1 addition, 1 deletionthird_party/rust/ash/Cargo.toml
- third_party/rust/ash/src/device.rs 947 additions, 553 deletionsthird_party/rust/ash/src/device.rs
- third_party/rust/ash/src/entry.rs 43 additions, 28 deletionsthird_party/rust/ash/src/entry.rs
- third_party/rust/ash/src/extensions/experimental/amd.rs 44 additions, 37 deletionsthird_party/rust/ash/src/extensions/experimental/amd.rs
- third_party/rust/ash/src/extensions/ext/buffer_device_address.rs 3 additions, 3 deletions...arty/rust/ash/src/extensions/ext/buffer_device_address.rs
- third_party/rust/ash/src/extensions/ext/calibrated_timestamps.rs 67 additions, 0 deletions...arty/rust/ash/src/extensions/ext/calibrated_timestamps.rs
- third_party/rust/ash/src/extensions/ext/debug_marker.rs 9 additions, 13 deletionsthird_party/rust/ash/src/extensions/ext/debug_marker.rs
- third_party/rust/ash/src/extensions/ext/debug_report.rs 11 additions, 12 deletionsthird_party/rust/ash/src/extensions/ext/debug_report.rs
- third_party/rust/ash/src/extensions/ext/debug_utils.rs 29 additions, 37 deletionsthird_party/rust/ash/src/extensions/ext/debug_utils.rs
- third_party/rust/ash/src/extensions/ext/extended_dynamic_state.rs 28 additions, 31 deletions...rty/rust/ash/src/extensions/ext/extended_dynamic_state.rs
- third_party/rust/ash/src/extensions/ext/extended_dynamic_state2.rs 78 additions, 0 deletions...ty/rust/ash/src/extensions/ext/extended_dynamic_state2.rs
- third_party/rust/ash/src/extensions/ext/full_screen_exclusive.rs 14 additions, 19 deletions...arty/rust/ash/src/extensions/ext/full_screen_exclusive.rs
Loading
Please register or sign in to comment