diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2016-04-11 21:47:24 +0200 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2016-04-11 21:47:24 +0200 |
| commit | 2063fc671aa47309e16da2ab98552351c2ecdaa8 (patch) | |
| tree | 5586f3ad93f01a8b1adc637c02a9257a2cfda1bc /Source/Core/VideoCommon/TextureCacheBase.h | |
| parent | 58d8c734b88bfb8cc3440139e89a31d5ba0d6921 (diff) | |
| parent | 9f625417c060c2c43e0b321d283d2c288cc84ce0 (diff) | |
Merge pull request #3748 from mimimi085181/partial-updates-paletted-textures
Partial updates for paletted textures
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index a997ff64bd..e87dfc29d1 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -109,6 +109,8 @@ public: bool OverlapsMemoryRange(u32 range_address, u32 range_size) const; + TextureCacheBase::TCacheEntryBase* ApplyPalette(u8* palette, u32 tlutfmt); + bool IsEfbCopy() const { return is_efb_copy; } u32 NumBlocksY() const; @@ -156,11 +158,12 @@ private: typedef std::multimap<u64, TCacheEntryBase*> TexCache; typedef std::unordered_multimap<TCacheEntryConfig, TCacheEntryBase*, TCacheEntryConfig::Hasher> TexPool; static void ScaleTextureCacheEntryTo(TCacheEntryBase** entry, u32 new_width, u32 new_height); - static TCacheEntryBase* DoPartialTextureUpdates(TexCache::iterator iter); + static TCacheEntryBase* DoPartialTextureUpdates(TexCache::iterator iter, u8* palette, u32 tlutfmt); static void DumpTexture(TCacheEntryBase* entry, std::string basename, unsigned int level); static void CheckTempSize(size_t required_size); static TCacheEntryBase* AllocateTexture(const TCacheEntryConfig& config); + static TexCache::iterator GetTexCacheIter(TCacheEntryBase* entry); static TexCache::iterator FreeTexture(TexCache::iterator t_iter); static TCacheEntryBase* ReturnEntry(unsigned int stage, TCacheEntryBase* entry); |
