Commit f1f00304 by Alexis Hetu Committed by Alexis Hétu

Assembly output for NxM matrices

Made a few minor changes to adjust for NxM matrices in assembly output. Change-Id: I3dde37e0f4bd2623232eebf0dc06182d8071d751 Reviewed-on: https://swiftshader-review.googlesource.com/2863Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent af1970ce
......@@ -926,7 +926,13 @@ namespace glsl
}
break;
case EOpConstructMat2:
case EOpConstructMat2x3:
case EOpConstructMat2x4:
case EOpConstructMat3x2:
case EOpConstructMat3:
case EOpConstructMat3x4:
case EOpConstructMat4x2:
case EOpConstructMat4x3:
case EOpConstructMat4:
if(visit == PostVisit)
{
......@@ -2507,7 +2513,7 @@ namespace glsl
{
TIntermTyped *matrix = m->getAsTyped();
ASSERT(matrix && matrix->isMatrix() && !matrix->isArray());
return matrix->getNominalSize();
return matrix->getSecondarySize();
}
// Returns ~0 if no loop count could be determined
......
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