mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Work around Adreno's OpName bug
This commit is contained in:
committed by
Dzmitry Malyshau
parent
809909137c
commit
180dc27144
@@ -36,7 +36,7 @@ thiserror = "1"
|
||||
|
||||
[dependencies.naga]
|
||||
git = "https://github.com/gfx-rs/naga"
|
||||
rev = "d4bedaf"
|
||||
rev = "e226cf3"
|
||||
#version = "0.6"
|
||||
features = ["wgsl-in"]
|
||||
|
||||
|
||||
@@ -69,12 +69,12 @@ core-graphics-types = "0.1"
|
||||
|
||||
[dependencies.naga]
|
||||
git = "https://github.com/gfx-rs/naga"
|
||||
rev = "d4bedaf"
|
||||
rev = "e226cf3"
|
||||
#version = "0.6"
|
||||
|
||||
[dev-dependencies.naga]
|
||||
git = "https://github.com/gfx-rs/naga"
|
||||
rev = "d4bedaf"
|
||||
rev = "e226cf3"
|
||||
#version = "0.6"
|
||||
features = ["wgsl-in"]
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@ pub mod db {
|
||||
pub mod nvidia {
|
||||
pub const VENDOR: u32 = 0x10DE;
|
||||
}
|
||||
pub mod qualcomm {
|
||||
pub const VENDOR: u32 = 0x5143;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn map_naga_stage(stage: naga::ShaderStage) -> wgt::ShaderStages {
|
||||
|
||||
@@ -843,6 +843,10 @@ impl super::Adapter {
|
||||
spv::WriterFlags::DEBUG,
|
||||
self.instance.flags.contains(crate::InstanceFlags::DEBUG),
|
||||
);
|
||||
flags.set(
|
||||
spv::WriterFlags::LABEL_VARYINGS,
|
||||
self.phd_capabilities.properties.vendor_id != crate::auxil::db::qualcomm::VENDOR,
|
||||
);
|
||||
spv::Options {
|
||||
lang_version: (1, 0),
|
||||
flags,
|
||||
|
||||
@@ -90,14 +90,14 @@ env_logger = "0.8"
|
||||
|
||||
[dependencies.naga]
|
||||
git = "https://github.com/gfx-rs/naga"
|
||||
rev = "d4bedaf"
|
||||
rev = "e226cf3"
|
||||
#version = "0.6"
|
||||
optional = true
|
||||
|
||||
# used to test all the example shaders
|
||||
[dev-dependencies.naga]
|
||||
git = "https://github.com/gfx-rs/naga"
|
||||
rev = "d4bedaf"
|
||||
rev = "e226cf3"
|
||||
#version = "0.6"
|
||||
features = ["wgsl-in"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user