Work around Adreno's OpName bug

This commit is contained in:
Dzmitry Malyshau 2021-09-08 17:29:51 -04:00 committed by Dzmitry Malyshau
parent 564951ac48
commit 64cc3bc82e
4 changed files with 10 additions and 3 deletions

4
Cargo.lock generated
View File

@ -966,9 +966,9 @@ dependencies = [
[[package]]
name = "naga"
version = "0.6.2"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b136bf483e309f330c74880370fa6f0553d9249399ac1dfa8e92c96a1612add"
checksum = "8c5859e55c51da10b98e7a73068e0a0c5da7bbcae4fc38f86043d0c6d1b917cf"
dependencies = [
"bit-set",
"bitflags",

View File

@ -70,7 +70,7 @@ core-graphics-types = "0.1"
[dependencies.naga]
#git = "https://github.com/gfx-rs/naga"
#rev = "4e181d6"
version = "0.6"
version = "0.6.3"
[dev-dependencies.naga]
#git = "https://github.com/gfx-rs/naga"

View File

@ -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 {

View File

@ -838,6 +838,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,