Commit 3935865e by Alexis Hetu Committed by Alexis Hétu

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/3271Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent a3fac8b6
...@@ -70,6 +70,9 @@ void TType::buildMangledName(TString& mangledName) ...@@ -70,6 +70,9 @@ void TType::buildMangledName(TString& mangledName)
} }
mangledName += static_cast<char>('0' + getNominalSize()); mangledName += static_cast<char>('0' + getNominalSize());
if(isMatrix()) {
mangledName += static_cast<char>('0' + getSecondarySize());
}
if (isArray()) { if (isArray()) {
char buf[20]; char buf[20];
snprintf(buf, sizeof(buf), "%d", arraySize); snprintf(buf, sizeof(buf), "%d", arraySize);
......
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