[PICA] Switch to xxh3 by default

This commit is contained in:
wheremyfoodat
2023-06-14 15:39:29 +03:00
parent f82b27ddba
commit f0f7327b90
4 changed files with 60 additions and 23 deletions

View File

@@ -34,26 +34,4 @@ void PICAShader::reset() {
codeHashDirty = true;
opdescHashDirty = true;
}
PICAShader::Hash PICAShader::getCodeHash() {
// Hash the code again if the code changed
if (codeHashDirty) {
codeHashDirty = false;
lastCodeHash = CityHash::CityHash64((const char*)&loadedShader[0], loadedShader.size() * sizeof(loadedShader[0]));
}
// Return the code hash
return lastCodeHash;
}
PICAShader::Hash PICAShader::getOpdescHash() {
// Hash the code again if the operand descriptors changed
if (opdescHashDirty) {
opdescHashDirty = false;
lastOpdescHash = CityHash::CityHash64((const char*)&operandDescriptors[0], operandDescriptors.size() * sizeof(operandDescriptors[0]));
}
// Return the code hash
return lastOpdescHash;
}