Work around Adreno's OpName bug

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-09-08 17:47:12 -04:00
1 parent 564951ac48
commit 64cc3bc82e
4 files changed
+10 -3

No files matched your search

Generated
+2 -2
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",
+1 -1
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"
+3
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 {
+4
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,