Commit 125c7dc9 by Alexis Hetu Committed by Alexis Hétu

Fixed first-class arrays

The typeSpecifier.array check was doubled inside and outside of the mShaderVersion check. The typeSpecifier.array check should only be done when mShaderVersion < 300. Fixes dEQP-GLES3.functional.state_query.shader.program_active_uniform_types Change-Id: I2907676c346a9f53d4f8c8da172b7ce0bc7b4083 Reviewed-on: https://swiftshader-review.googlesource.com/14848Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 4923ce99
...@@ -1316,13 +1316,6 @@ TPublicType TParseContext::addFullySpecifiedType(TQualifier qualifier, bool inva ...@@ -1316,13 +1316,6 @@ TPublicType TParseContext::addFullySpecifiedType(TQualifier qualifier, bool inva
returnType.invariant = invariant; returnType.invariant = invariant;
returnType.layoutQualifier = layoutQualifier; returnType.layoutQualifier = layoutQualifier;
if(typeSpecifier.array)
{
error(typeSpecifier.line, "not supported", "first-class array");
recover();
returnType.clearArrayness();
}
if(mShaderVersion < 300) if(mShaderVersion < 300)
{ {
if(typeSpecifier.array) if(typeSpecifier.array)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment