summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2024-01-13 06:38:39 -0500
committerGitHub <noreply@github.com>2024-01-13 06:38:39 -0500
commit8760aca8ec400ceb231eaf98193f83172c2c8971 (patch)
tree46113c3489477fd1dc76c16629f945670f59abd6 /Source/Core/VideoCommon/TextureCacheBase.cpp
parentd36baf633c9de8d5a3da863ffacca4ba8c88260f (diff)
parent637fd4990914831ae164c2f410cf60fe4f0d28c4 (diff)
Merge pull request #12500 from AdmiralCurtiss/globals-fiforecorder
FifoRecorder: Move instance to System.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index 9294748397..e5b8122982 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -1349,9 +1349,9 @@ RcTcacheEntry TextureCacheBase::GetTexture(const int textureCacheSafetyColorSamp
// its own memory modification tracking independent of the texture hashing below.
if (OpcodeDecoder::g_record_fifo_data && !texture_info.IsFromTmem())
{
- FifoRecorder::GetInstance().UseMemory(texture_info.GetRawAddress(),
- texture_info.GetFullLevelSize(),
- MemoryUpdate::Type::TextureMap);
+ Core::System::GetInstance().GetFifoRecorder().UseMemory(texture_info.GetRawAddress(),
+ texture_info.GetFullLevelSize(),
+ MemoryUpdate::Type::TextureMap);
}
// TODO: This doesn't hash GB tiles for preloaded RGBA8 textures (instead, it's hashing more data
@@ -2534,8 +2534,8 @@ void TextureCacheBase::CopyRenderTargetToTexture(
u32 address = dstAddr;
for (u32 i = 0; i < num_blocks_y; i++)
{
- FifoRecorder::GetInstance().UseMemory(address, bytes_per_row, MemoryUpdate::Type::TextureMap,
- true);
+ Core::System::GetInstance().GetFifoRecorder().UseMemory(address, bytes_per_row,
+ MemoryUpdate::Type::TextureMap, true);
address += dstStride;
}
}