浏览代码

Update glslang

Panagiotis Christopoulos Charitos 7 年之前
父节点
当前提交
ce3dcb9e62
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      src/anki/gr/ShaderCompiler.cpp
  2. 1 1
      thirdparty

+ 1 - 0
src/anki/gr/ShaderCompiler.cpp

@@ -249,6 +249,7 @@ static ANKI_USE_RESULT Error genSpirv(const ShaderCompiler::BuildContext& ctx, s
 	// Gen SPIRV
 	// Gen SPIRV
 	glslang::SpvOptions spvOptions;
 	glslang::SpvOptions spvOptions;
 	spvOptions.optimizeSize = true;
 	spvOptions.optimizeSize = true;
+	spvOptions.disableOptimizer = true; // Enabling it crashes RADV
 	glslang::GlslangToSpv(*program.getIntermediate(stage), spirv, &spvOptions);
 	glslang::GlslangToSpv(*program.getIntermediate(stage), spirv, &spvOptions);
 
 
 	return Error::NONE;
 	return Error::NONE;

+ 1 - 1
thirdparty

@@ -1 +1 @@
-Subproject commit c40d3f5ea3b95f728c14e78cd82aaae03281a304
+Subproject commit 48a405d9a92daa3407adefabd1bdf21dd0fe2fa1