From 4fbbd85ef45e4d3f609035563abab362cdc89b7f Mon Sep 17 00:00:00 2001 From: iwubcode Date: Thu, 26 May 2022 00:59:24 -0500 Subject: VideoCommon: create variables for EFB/XFB copy prefix. Reword prefix to 'efb1' and 'xfb1' to match textures --- Source/Core/VideoCommon/TextureCacheBase.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Core/VideoCommon/TextureCacheBase.h') diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index daf7e292d1..503d2544b5 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -29,6 +30,9 @@ class AbstractStagingTexture; class PointerWrap; struct VideoConfig; +constexpr std::string_view EFB_DUMP_PREFIX = "efb1"; +constexpr std::string_view XFB_DUMP_PREFIX = "xfb1"; + struct TextureAndTLUTFormat { TextureAndTLUTFormat(TextureFormat texfmt_ = TextureFormat::I4, -- cgit v1.2.3 From 62c186e14b35d896d67172bc5092df2af59e715e Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 25 Jun 2022 00:42:17 -0500 Subject: VideoCommon: add UninitializeEFBMemory to mirror XFB function --- Source/Core/VideoCommon/TextureCacheBase.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/VideoCommon/TextureCacheBase.h') diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 503d2544b5..3247c9f929 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -331,6 +331,7 @@ private: TexAddrCache::iterator InvalidateTexture(TexAddrCache::iterator t_iter, bool discard_pending_efb_copy = false); + void UninitializeEFBMemory(u8* dst, u32 stride, u32 bytes_per_row, u32 num_blocks_y); void UninitializeXFBMemory(u8* dst, u32 stride, u32 bytes_per_row, u32 num_blocks_y); // Precomputing the coefficients for the previous, current, and next lines for the copy filter. -- cgit v1.2.3 From 892678648eee7a1724b790fba0aa312e0fe8c728 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 5 Mar 2022 14:52:43 -0600 Subject: VideoCommon: trigger mod calls in TextureCacheBase (efb/xfb calls), VertexManagerBase (draw calls), and VertexShaderManager (projection calls) --- Source/Core/VideoCommon/TextureCacheBase.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.h') diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 3247c9f929..61cc612eed 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -155,6 +155,8 @@ public: u32 pending_efb_copy_height = 0; bool pending_efb_copy_invalidated = false; + std::string texture_info_name = ""; + explicit TCacheEntry(std::unique_ptr tex, std::unique_ptr fb); @@ -239,8 +241,9 @@ public: void Invalidate(); - TCacheEntry* Load(const u32 stage); - TCacheEntry* GetTexture(const int textureCacheSafetyColorSampleSize, TextureInfo& texture_info); + TCacheEntry* Load(const TextureInfo& texture_info); + TCacheEntry* GetTexture(const int textureCacheSafetyColorSampleSize, + const TextureInfo& texture_info); TCacheEntry* GetXFBTexture(u32 address, u32 width, u32 height, u32 stride, MathUtil::Rectangle* display_rect); @@ -374,6 +377,7 @@ private: bool gpu_texture_decoding; bool disable_vram_copies; bool arbitrary_mipmap_detection; + bool graphics_mods; }; BackupConfig backup_config = {}; -- cgit v1.2.3 From 69839df1eb2a594b81bceb8cfac58ccbba286628 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Tue, 15 Mar 2022 01:46:58 -0500 Subject: VideoCommon: support dynamically updating game mods at runtime --- Source/Core/VideoCommon/TextureCacheBase.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/VideoCommon/TextureCacheBase.h') diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 61cc612eed..287f3b840f 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -378,6 +378,7 @@ private: bool disable_vram_copies; bool arbitrary_mipmap_detection; bool graphics_mods; + u32 graphics_mod_change_count; }; BackupConfig backup_config = {}; -- cgit v1.2.3