summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2022-05-10 19:44:43 -0400
committerGitHub <noreply@github.com>2022-05-10 16:44:43 -0700
commit2eff11b040077b3e7c647a519d4f313871a92674 (patch)
tree1fa86fcb83331432e888bdc04d2c5c09e104779b /source
parent8a02d1302264f37394736f953d318b431f64005e (diff)
Glslang upgrade (#2228)
* #include an absolute path didn't work - because paths were taken to always be relative. * Update SPIR-V headers/opt. Update glslang. * Set the SPIR-V emit version. * Use the merged hash from shader-slang/glslang * Improve comment around spirv version for emitting spir-v directly.
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-emit-spirv.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp
index a2211578d..6b3b42e92 100644
--- a/source/slang/slang-emit-spirv.cpp
+++ b/source/slang/slang-emit-spirv.cpp
@@ -349,7 +349,14 @@ struct SPIRVEmitContext
// > Version nuumber
//
- m_words.add(SpvVersion);
+
+ // TODO(JS):
+ // Was previously set to SpvVersion, but that doesn't work since we
+ // upgraded to SPIR-V headers 1.6. (It would lead to validation errors during vk tests)
+ // For now mark as version 1.5.0
+
+ static const uint32_t spvVersion1_5_0 = 0x00010500;
+ m_words.add(spvVersion1_5_0);
// > Generator's magic number.
// > Its value does not affect any semantics, and is allowed to be 0.