Non-functional: Use isOpaque() instead of compare against EbtSampler.
authorJohn Kessenich <cepheus@frii.com>
Sat, 1 Oct 2016 18:35:01 +0000 (12:35 -0600)
committerJohn Kessenich <cepheus@frii.com>
Sat, 1 Oct 2016 18:35:01 +0000 (12:35 -0600)
glslang/Include/revision.h
hlsl/hlslGrammar.cpp
hlsl/hlslParseHelper.cpp

index 2d79b42..44f6a14 100644 (file)
@@ -2,5 +2,5 @@
 // For the version, it uses the latest git tag followed by the number of commits.
 // For the date, it uses the current date (when then script is run).
 
-#define GLSLANG_REVISION "Overload400-PrecQual.1528"
-#define GLSLANG_DATE "29-Sep-2016"
+#define GLSLANG_REVISION "Overload400-PrecQual.1541"
+#define GLSLANG_DATE "01-Oct-2016"
index 9652129..b41618c 100755 (executable)
@@ -366,7 +366,7 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& node)
                 else if (variableType.getBasicType() == EbtBlock)
                     parseContext.declareBlock(idToken.loc, variableType, idToken.string);
                 else {
-                    if (variableType.getQualifier().storage == EvqUniform && variableType.getBasicType() != EbtSampler) {
+                    if (variableType.getQualifier().storage == EvqUniform && ! variableType.isOpaque()) {
                         // this isn't really an individual variable, but a member of the $Global buffer
                         parseContext.growGlobalUniformBlock(idToken.loc, variableType, *idToken.string);
                     } else {
index 44a4230..47c6fd6 100755 (executable)
@@ -737,8 +737,7 @@ bool HlslParseContext::shouldFlattenUniform(const TType& type) const
     return type.isArray() &&
         intermediate.getFlattenUniformArrays() &&
         qualifier == EvqUniform &&
-        // Testing the EbtSampler basic type covers samplers and textures
-        type.getBasicType() == EbtSampler;
+        type.isOpaque();
 }
 
 void HlslParseContext::flatten(const TSourceLoc& loc, const TVariable& variable)