commit | 3935865e452dc7bc09c40a8d617416c8ed7ffb45 | [log] [tgz] |
---|---|---|
author | Alexis Hetu <sugoi@google.com> | Tue May 26 14:34:54 2015 -0400 |
committer | Alexis Hétu <sugoi@google.com> | Tue May 26 19:52:13 2015 +0000 |
tree | 866b3784065fcf56840bcfd1869812aa4a1599ed | |
parent | a3fac8b603cd4970b05bedee8b4b65db6a765cf5 [diff] [blame] |
Fix matrix mangled name NxM matrices weren't mangled properly, since only the nominal size was taken into account, not the secondary size, in the mangled name. Change-Id: I94f4d8e1909cce085e8748bbe5355c5f17b0e7c2 Reviewed-on: https://swiftshader-review.googlesource.com/3271 Tested-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/OpenGL/compiler/SymbolTable.cpp b/src/OpenGL/compiler/SymbolTable.cpp index 6d7757d..1935478 100644 --- a/src/OpenGL/compiler/SymbolTable.cpp +++ b/src/OpenGL/compiler/SymbolTable.cpp
@@ -70,6 +70,9 @@ } mangledName += static_cast<char>('0' + getNominalSize()); + if(isMatrix()) { + mangledName += static_cast<char>('0' + getSecondarySize()); + } if (isArray()) { char buf[20]; snprintf(buf, sizeof(buf), "%d", arraySize);