From b9608533236b079b3ad85ba2f496ad7dbf8ebba7 Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Wed, 8 Jun 2022 09:35:33 +0200 Subject: [PATCH] Bump naga dep to 89bed99. --- Cargo.lock | 2 +- wgpu-core/Cargo.toml | 2 +- wgpu-hal/Cargo.toml | 4 ++-- wgpu-hal/src/gles/device.rs | 10 ++++++++++ wgpu/Cargo.toml | 6 +++--- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 495bdf8817a..3830b9f43da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1033,7 +1033,7 @@ dependencies = [ [[package]] name = "naga" version = "0.8.0" -source = "git+https://github.com/gfx-rs/naga?rev=571302e#571302e3ff09cb856f63a3683da308159872b7cc" +source = "git+https://github.com/gfx-rs/naga?rev=89bed99#89bed99bcc995bc5068c9c112fd9b7d7896bb148" dependencies = [ "bit-set", "bitflags", diff --git a/wgpu-core/Cargo.toml b/wgpu-core/Cargo.toml index 58d97231663..94560af820d 100644 --- a/wgpu-core/Cargo.toml +++ b/wgpu-core/Cargo.toml @@ -41,7 +41,7 @@ thiserror = "1" [dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "571302e" +rev = "89bed99" #version = "0.8" features = ["span", "validate", "wgsl-in"] diff --git a/wgpu-hal/Cargo.toml b/wgpu-hal/Cargo.toml index caad696d40c..f543ff71473 100644 --- a/wgpu-hal/Cargo.toml +++ b/wgpu-hal/Cargo.toml @@ -92,14 +92,14 @@ js-sys = { version = "0.3" } [dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "571302e" +rev = "89bed99" #version = "0.8" # DEV dependencies [dev-dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "571302e" +rev = "89bed99" #version = "0.8" features = ["wgsl-in"] diff --git a/wgpu-hal/src/gles/device.rs b/wgpu-hal/src/gles/device.rs index 3defc44c0bc..b581debbb92 100644 --- a/wgpu-hal/src/gles/device.rs +++ b/wgpu-hal/src/gles/device.rs @@ -144,6 +144,15 @@ impl super::Device { .position(|ep| ep.name.as_str() == stage.entry_point) .ok_or(crate::PipelineError::EntryPoint(naga_stage))?; + // TODO: expose these parameters. + use naga::proc::BoundsCheckPolicy; + let policies = naga::proc::BoundsCheckPolicies { + index: BoundsCheckPolicy::Unchecked, + buffer: BoundsCheckPolicy::Unchecked, + image: BoundsCheckPolicy::Unchecked, + binding_array: BoundsCheckPolicy::Unchecked, + }; + let mut output = String::new(); let mut writer = glsl::Writer::new( &mut output, @@ -151,6 +160,7 @@ impl super::Device { &shader.info, &context.layout.naga_options, &pipeline_options, + policies, ) .map_err(|e| { let msg = format!("{}", e); diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index 834eeefe875..b1f8b4cc4a7 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -139,20 +139,20 @@ env_logger = "0.9" [dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "571302e" +rev = "89bed99" #version = "0.8" optional = true # used to test all the example shaders [dev-dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "571302e" +rev = "89bed99" #version = "0.8" features = ["wgsl-in"] [target.'cfg(target_arch = "wasm32")'.dependencies.naga] git = "https://github.com/gfx-rs/naga" -rev = "571302e" +rev = "89bed99" #version = "0.8" features = ["wgsl-out"]