Commit c89f75b6 by Chris Forbes

Fix code generation for vec.swiz *= mat

Khronos test CL: https://gerrit.khronos.org/#/c/2944/ Bug: b/116259485 Change-Id: Ie10b3eb16da39f332966a5b957acb0232140a942 Reviewed-on: https://swiftshader-review.googlesource.com/20748Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com>
parent 2ecc8b71
......@@ -748,6 +748,11 @@ namespace glsl
case EOpVectorTimesMatrixAssign:
assert(visit == PreVisit);
{
// The left operand may contain a swizzle serving double-duty as
// swizzle and writemask, so it's important that we traverse it
// first. Otherwise we may end up never setting up our left
// operand correctly.
left->traverse(this);
right->traverse(this);
int size = leftType.getNominalSize();
......
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