Merge pull request #1803 from Igalia/siglesias/fix-gl_SubGroupSizeARB-tese-geom

Fix gl_SubGroupSizeARB builtin treatment
This commit is contained in:
John Kessenich 2019-06-17 09:16:02 -06:00 committed by GitHub
commit 9db72785be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8176,12 +8176,6 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
BuiltInVariable("gl_SubGroupSizeARB", EbvSubGroupSize, symbolTable); BuiltInVariable("gl_SubGroupSizeARB", EbvSubGroupSize, symbolTable);
} }
if (spvVersion.vulkan > 0)
// Treat "gl_SubGroupSizeARB" as shader input instead of uniform for Vulkan
SpecialQualifier("gl_SubGroupSizeARB", EvqVaryingIn, EbvSubGroupSize, symbolTable);
else
BuiltInVariable("gl_SubGroupSizeARB", EbvSubGroupSize, symbolTable);
// GL_KHR_shader_subgroup // GL_KHR_shader_subgroup
if ((profile == EEsProfile && version >= 310) || if ((profile == EEsProfile && version >= 310) ||
(profile != EEsProfile && version >= 140)) { (profile != EEsProfile && version >= 140)) {