mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Merge pull request #22388 from hrydgard/update-xxhash
Update xxhash to v0.8.4, use XXH3 for texture hashing
This commit is contained in:
3 files changed
+3223
-1275
No files matched your search
@@ -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
@@ -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
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user