mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Merge pull request #3019 from mimimi085181/store-base-hash
Store the base hash for paletted textures in the texture cache entries
This commit is contained in:
@ -49,7 +49,8 @@ public:
|
||||
// common members
|
||||
u32 addr;
|
||||
u32 size_in_bytes;
|
||||
u64 hash;
|
||||
u64 base_hash;
|
||||
u64 hash; // for paletted textures, hash = base_hash ^ palette_hash
|
||||
u32 format;
|
||||
bool is_efb_copy;
|
||||
bool is_custom_tex;
|
||||
@ -79,8 +80,9 @@ public:
|
||||
memory_stride = _native_width;
|
||||
}
|
||||
|
||||
void SetHashes(u64 _hash)
|
||||
void SetHashes(u64 _base_hash, u64 _hash)
|
||||
{
|
||||
base_hash = _base_hash;
|
||||
hash = _hash;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user