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:
Scott Mansell
2015-09-12 16:24:29 +12:00
2 changed files with 14 additions and 12 deletions

View File

@ -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;
}