Merge pull request #22388 from hrydgard/update-xxhash

Update xxhash to v0.8.4, use XXH3 for texture hashing
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-09-29 13:52:00 -06:00
commit 949423d8e9
3 files changed
+3223 -1275

No files matched your search

+3 -2
View File
@@ -431,8 +431,9 @@ static u32 ComputeTextureHash(TextureReplacer &replacer, u32 addr, int bufw, int
if (Memory::IsValidRange(addr, sizeInRAM)) {
gpuStats.perFrame.numTextureDataBytesHashed += sizeInRAM;
// return XXH64(checkp, sizeInRAM, 0xBACD7814);
return StableQuickTexHash(checkp, sizeInRAM);
// XXH3 is faster than StableQuickTexHash on ARM64 and doesn't collide the way it did (#8249).
// Texture replacement keeps its own hash setting above, so this doesn't affect texture packs.
return (u32)XXH3_64bits(checkp, sizeInRAM);
} else {
return 0;
}
+1 -2
View File
@@ -1,6 +1,6 @@
/*
* xxHash - Extremely Fast Hash algorithm
* Copyright (C) 2012-2020 Yann Collet
* Copyright (C) 2012-2023 Yann Collet
*
* BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
*
@@ -32,7 +32,6 @@
* - xxHash source repository: https://github.com/Cyan4973/xxHash
*/
/*
* xxhash.c instantiates functions defined in xxhash.h
*/
+3219 -1271
View File
File diff suppressed because it is too large. Load diff