Skip to content

Commit

Permalink
Update to Naga b63436a (2022-9-1).
Browse files Browse the repository at this point in the history
This removes an expected failure on AMD RADV. I guess #2751 was our
bug all along.
  • Loading branch information
jimblandy committed Sep 1, 2022
1 parent 7d138e2 commit 2b147e5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 30 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions wgpu-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ smallvec = "1"
thiserror = "1"

[dependencies.naga]
#git = "https://github.com/gfx-rs/naga"
#rev = "27d38aae"
version = "0.9"
git = "https://github.com/jimblandy/naga"
rev = "90e660ce"
features = ["span", "validate", "wgsl-in"]

[dependencies.wgt]
Expand Down
8 changes: 4 additions & 4 deletions wgpu-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ js-sys = { version = "0.3" }
android_system_properties = "0.1.1"

[dependencies.naga]
#git = "https://github.com/gfx-rs/naga"
#rev = "27d38aae"
version = "0.9"
git = "https://github.com/jimblandy/naga"
rev = "90e660ce"

# DEV dependencies

[dev-dependencies.naga]
git = "https://github.com/jimblandy/naga"
rev = "90e660ce"
#git = "https://github.com/gfx-rs/naga"
#rev = "27d38aae"
version = "0.9"
features = ["wgsl-in"]

[dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions wgpu-hal/src/dx12/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ impl crate::Device<super::Api> for super::Device {
binding_map,
fake_missing_bindings: false,
special_constants_binding,
push_constants_target: None,
},
})
}
Expand Down
11 changes: 6 additions & 5 deletions wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -139,22 +139,23 @@ pollster = "0.2"
env_logger = "0.9"

[dependencies.naga]
#git = "https://github.com/gfx-rs/naga"
#rev = "27d38aae"
version = "0.9"
git = "https://github.com/jimblandy/naga"
rev = "90e660ce"
optional = true

# used to test all the example shaders
[dev-dependencies.naga]
git = "https://github.com/jimblandy/naga"
rev = "90e660ce"
#git = "https://github.com/gfx-rs/naga"
#rev = "27d38aae"
version = "0.9"
features = ["wgsl-in"]

[target.'cfg(target_arch = "wasm32")'.dependencies.naga]
git = "https://github.com/jimblandy/naga"
rev = "90e660ce"
#git = "https://github.com/gfx-rs/naga"
#rev = "27d38aae"
version = "0.9"
features = ["wgsl-out"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
18 changes: 2 additions & 16 deletions wgpu/tests/shader_primitive_index/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,7 @@ fn draw() {
initialize_test(
TestParameters::default()
.test_features_limits()
.features(wgpu::Features::SHADER_PRIMITIVE_INDEX)
// https://github.com/gfx-rs/wgpu/issues/2751
.specific_failure(
Some(wgt::Backends::VULKAN),
Some(0x1002), // AMD
Some("AMD RADV"),
false,
),
.features(wgpu::Features::SHADER_PRIMITIVE_INDEX),
|ctx| {
pulling_common(ctx, &expected, |rpass| {
rpass.draw(0..6, 0..1);
Expand All @@ -82,14 +75,7 @@ fn draw_indexed() {
initialize_test(
TestParameters::default()
.test_features_limits()
.features(wgpu::Features::SHADER_PRIMITIVE_INDEX)
// https://github.com/gfx-rs/wgpu/issues/2751
.specific_failure(
Some(wgt::Backends::VULKAN),
Some(0x1002), // AMD
Some("AMD RADV"),
false,
),
.features(wgpu::Features::SHADER_PRIMITIVE_INDEX),
|ctx| {
pulling_common(ctx, &expected, |rpass| {
rpass.draw_indexed(0..6, 0, 0..1);
Expand Down

0 comments on commit 2b147e5

Please sign in to comment.