From dddcea5a9a38ae4832ccf9544d4b097e80df2e34 Mon Sep 17 00:00:00 2001 From: degasus Date: Fri, 16 May 2014 18:41:01 +0200 Subject: [PATCH] TexCache: don't invalidate efb copys because of config changes We'll loose data on invalidating them. So just keep them until a new copy is done. A wrong scaled copy is better than no copy if the game doesn't creates a new one. --- Source/Core/VideoCommon/TextureCacheBase.cpp | 10 +--------- Source/Core/VideoCommon/TextureCacheBase.h | 4 ---- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index ce9b724b8f..70e8f0433f 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -116,11 +116,7 @@ void TextureCache::OnConfigChanged(VideoConfig& config) } // TODO: Probably shouldn't clear all render targets here, just mark them dirty or something. - if (config.bEFBCopyCacheEnable != backup_config.s_copy_cache_enable || // TODO: not sure if this is needed? - config.bCopyEFBToTexture != backup_config.s_copy_efb_to_texture || - config.bCopyEFBScaled != backup_config.s_copy_efb_scaled || - config.bEFBCopyEnable != backup_config.s_copy_efb || - config.iEFBScale != backup_config.s_efb_scale) + if (config.bEFBCopyCacheEnable != backup_config.s_copy_cache_enable) // TODO: not sure if this is needed? { g_texture_cache->ClearRenderTargets(); } @@ -134,10 +130,6 @@ void TextureCache::OnConfigChanged(VideoConfig& config) } backup_config.s_colorsamples = config.iSafeTextureCache_ColorSamples; - backup_config.s_copy_efb_to_texture = config.bCopyEFBToTexture; - backup_config.s_copy_efb_scaled = config.bCopyEFBScaled; - backup_config.s_copy_efb = config.bEFBCopyEnable; - backup_config.s_efb_scale = config.iEFBScale; backup_config.s_texfmt_overlay = config.bTexFmtOverlayEnable; backup_config.s_texfmt_overlay_center = config.bTexFmtOverlayCenter; backup_config.s_hires_textures = config.bHiresTextures; diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 0b8cf48918..cea35816fe 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -134,10 +134,6 @@ private: static struct BackupConfig { int s_colorsamples; - bool s_copy_efb_to_texture; - bool s_copy_efb_scaled; - bool s_copy_efb; - int s_efb_scale; bool s_texfmt_overlay; bool s_texfmt_overlay_center; bool s_hires_textures;