From 9f625417c060c2c43e0b321d283d2c288cc84ce0 Mon Sep 17 00:00:00 2001 From: mimimi085181 Date: Sat, 26 Mar 2016 03:43:32 +0100 Subject: Partial updates for paletted textures This pr fixes another regression that happened after pr #3165 was merged. The shadows in mario baseball should now work again. --- Source/Core/VideoCommon/TextureCacheBase.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.h') 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 TexCache; typedef std::unordered_multimap 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); -- cgit v1.2.3