Path: blob/master/thirdparty/glslang/patches/0002-apple-m1-msaa-fix.patch
45998 views
diff --git a/thirdparty/glslang/SPIRV/GlslangToSpv.cpp b/thirdparty/glslang/SPIRV/GlslangToSpv.cpp1index 1a5c40c53a..d4af42f70b 1006442--- a/thirdparty/glslang/SPIRV/GlslangToSpv.cpp3+++ b/thirdparty/glslang/SPIRV/GlslangToSpv.cpp4@@ -5181,6 +5181,11 @@ spv::Id TGlslangToSpvTraverser::createSpvVariable(const glslang::TIntermSymbol*5glslang::TQualifier typeQualifier = node->getType().getQualifier();6TranslateMemoryDecoration(typeQualifier, topLevelDecorations, glslangIntermediate->usingVulkanMemoryModel());7for (auto deco : topLevelDecorations) {8+#ifdef __APPLE__9+ if (deco != spv::Decoration::Restrict &&10+ deco != spv::Decoration::RestrictPointer &&11+ deco != spv::Decoration::RestrictPointerEXT)12+#endif13builder.addDecoration(var, deco);14}15return var;161718