From a8b52663479effc0f404f7c0f8b52bc0ee37b742 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Mon, 30 May 2022 20:54:42 -0500 Subject: [PATCH] VideoCommon: enable optimizer and remove debug details when converting GLSL to SPIR-V with validation layers turned off --- Source/Core/VideoCommon/Spirv.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Core/VideoCommon/Spirv.cpp b/Source/Core/VideoCommon/Spirv.cpp index 773a5463f2..b10b4eb92b 100644 --- a/Source/Core/VideoCommon/Spirv.cpp +++ b/Source/Core/VideoCommon/Spirv.cpp @@ -132,6 +132,11 @@ CompileShaderToSPV(EShLanguage stage, APIType api_type, options.disassemble = false; options.validate = true; } + else + { + options.disableOptimizer = false; + options.stripDebugInfo = true; + } glslang::GlslangToSpv(*intermediate, out_code, &logger, &options);