commit | 5da2d3fcdf0941bc9c672a1947159f30037c0fb9 | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Sat Jun 11 00:41:49 2016 -0400 |
committer | Nicolas Capens <capn@google.com> | Sun Jun 12 20:06:47 2016 +0000 |
tree | d7d2f20fdea58cbc2e221ede215cbfc63ed86f10 | |
parent | 83dfb166a3b5b85547e285081d06439990cdf00e [diff] |
Fix lvalue output parameter assignment. Output parameters can be any kind of lvalue, such as struct members or array elements. Change-Id: I4dce9dddfa95f58275fe3f6a4acf55532330a8f7 Reviewed-on: https://swiftshader-review.googlesource.com/5570 Tested-by: Nicolas Capens <capn@google.com> Reviewed-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/OpenGL/compiler/OutputASM.cpp b/src/OpenGL/compiler/OutputASM.cpp index 9c467ab..e06efae 100644 --- a/src/OpenGL/compiler/OutputASM.cpp +++ b/src/OpenGL/compiler/OutputASM.cpp
@@ -1223,7 +1223,7 @@ if(argument->getQualifier() == EvqOut || argument->getQualifier() == EvqInOut) { - copy(out, argument); + assignLvalue(out, argument); } } }