Commit 6c7ac3c8 by Alexis Hetu Committed by Alexis Hétu

Fixed uniform block indexing

A uniform block's qualifier is generally a uniform, so we have to change that to a temporary in order to be able to us it as the result of the indexing operation. Change-Id: I2f5ba7f966e8eaab314322edfa0483a9f24bfbdb Reviewed-on: https://swiftshader-review.googlesource.com/4543Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent c8b0f54c
......@@ -2339,7 +2339,7 @@ TIntermTyped *TParseContext::addIndexExpression(TIntermTyped *baseExpression, co
}
else if(baseType.isInterfaceBlock())
{
TType copyOfType(baseType.getInterfaceBlock(), baseType.getQualifier(), baseType.getLayoutQualifier(), 0);
TType copyOfType(baseType.getInterfaceBlock(), EvqTemporary, baseType.getLayoutQualifier(), 0);
indexedExpression->setType(copyOfType);
}
else
......
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