From b2a9c365011a501ead2b5505d219f9c817b6b7e9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 5 Dec 2019 08:11:52 -0500 Subject: VideoCommon/OpcodeDecoding: Move g_bRecordFifoData into namespace Keeps the global localized with the code that it's primarily related to. Now it's obvious from a glance what the global variable is affecting. --- Source/Core/VideoCommon/TextureCacheBase.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp') diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index f38745a318..c68ed147c2 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -38,6 +38,7 @@ #include "VideoCommon/BPMemory.h" #include "VideoCommon/FramebufferManager.h" #include "VideoCommon/HiresTextures.h" +#include "VideoCommon/OpcodeDecoding.h" #include "VideoCommon/PixelShaderManager.h" #include "VideoCommon/RenderBase.h" #include "VideoCommon/SamplerCommon.h" @@ -1260,9 +1261,11 @@ TextureCacheBase::GetTexture(u32 address, u32 width, u32 height, const TextureFo // If we are recording a FifoLog, keep track of what memory we read. FifoRecorder does // its own memory modification tracking independent of the texture hashing below. - if (g_bRecordFifoData && !from_tmem) + if (OpcodeDecoder::g_record_fifo_data && !from_tmem) + { FifoRecorder::GetInstance().UseMemory(address, texture_size + additional_mips_size, MemoryUpdate::TEXTURE_MAP); + } // TODO: This doesn't hash GB tiles for preloaded RGBA8 textures (instead, it's hashing more data // from the low tmem bank than it should) @@ -2294,7 +2297,7 @@ void TextureCacheBase::CopyRenderTargetToTexture( ++iter.first; } - if (g_bRecordFifoData) + if (OpcodeDecoder::g_record_fifo_data) { // Mark the memory behind this efb copy as dynamicly generated for the Fifo log u32 address = dstAddr; -- cgit v1.2.3