Fix compatibility with spirv-cross SDK 1.3.236
authorTimo Röhling <roehling@debian.org>
Fri, 27 Jan 2023 23:24:14 +0000 (00:24 +0100)
committerTimo Röhling <roehling@debian.org>
Fri, 27 Jan 2023 23:25:18 +0000 (00:25 +0100)
debian/patches/0019-Fix-compatibility-with-spirv-cross-SDK-1.3.236.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0019-Fix-compatibility-with-spirv-cross-SDK-1.3.236.patch b/debian/patches/0019-Fix-compatibility-with-spirv-cross-SDK-1.3.236.patch
new file mode 100644 (file)
index 0000000..2419ca0
--- /dev/null
@@ -0,0 +1,24 @@
+From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
+Date: Sat, 28 Jan 2023 00:24:04 +0100
+Subject: Fix compatibility with spirv-cross SDK 1.3.236
+
+---
+ libs/filamat/src/GLSLPostProcessor.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/libs/filamat/src/GLSLPostProcessor.cpp b/libs/filamat/src/GLSLPostProcessor.cpp
+index 678f069..c774bd9 100644
+--- a/libs/filamat/src/GLSLPostProcessor.cpp
++++ b/libs/filamat/src/GLSLPostProcessor.cpp
+@@ -346,7 +346,11 @@ void GLSLPostProcessor::fullOptimization(const TShader& tShader,
+         if (tShader.getStage() == EShLangFragment && glslOptions.es) {
+             for (auto i : config.glsl.subpassInputToColorLocation) {
++#if SPV_VERSION >= 0x10600
++                glslCompiler.remap_ext_framebuffer_fetch(i.first, i.second, true);
++#else
+                 glslCompiler.remap_ext_framebuffer_fetch(i.first, i.second);
++#endif
+             }
+         }
index 3c09467bd881ee9d155e0ba8b8bd82efee9aa1eb..83f6b96407f3821d76d3363c2c461071beac8fbb 100644 (file)
@@ -16,3 +16,4 @@
 0016-Fix-FTBFS-with-GCC-12.patch
 0017-Workaround-for-armel-clang-compiler-bug.patch
 0018-Fix-TBuiltInResource-struct.patch
+0019-Fix-compatibility-with-spirv-cross-SDK-1.3.236.patch