summaryrefslogtreecommitdiffstats
path: root/thirdparty/glslang/SPIRV/SpvPostProcess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/glslang/SPIRV/SpvPostProcess.cpp')
-rw-r--r--thirdparty/glslang/SPIRV/SpvPostProcess.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/thirdparty/glslang/SPIRV/SpvPostProcess.cpp b/thirdparty/glslang/SPIRV/SpvPostProcess.cpp
index c4be365527..13001a67a1 100644
--- a/thirdparty/glslang/SPIRV/SpvPostProcess.cpp
+++ b/thirdparty/glslang/SPIRV/SpvPostProcess.cpp
@@ -53,6 +53,7 @@ namespace spv {
#include "GLSL.ext.AMD.h"
#include "GLSL.ext.NV.h"
#include "GLSL.ext.ARM.h"
+ #include "GLSL.ext.QCOM.h"
}
namespace spv {
@@ -482,9 +483,13 @@ void Builder::postProcessFeatures() {
}
// comment in header
-void Builder::postProcess() {
- postProcessCFG();
- postProcessFeatures();
+void Builder::postProcess(bool compileOnly)
+{
+ // postProcessCFG needs an entrypoint to determine what is reachable, but if we are not creating an "executable" shader, we don't have an entrypoint
+ if (!compileOnly)
+ postProcessCFG();
+
+ postProcessFeatures();
}
}; // end spv namespace