From 9cabf20aaa058fc4cfdd4990dd9abf4e9c523382 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Tue, 29 Aug 2023 19:27:59 -0700 Subject: Fifo: Convert MemoryUpdate::Type to enum class --- Source/Core/VideoCommon/TextureCacheBase.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp') diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 37dadba967..8d7a9f875d 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -1379,8 +1379,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::TEXTURE_MAP); + FifoRecorder::GetInstance().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 @@ -2541,7 +2542,7 @@ void TextureCacheBase::CopyRenderTargetToTexture( u32 address = dstAddr; for (u32 i = 0; i < num_blocks_y; i++) { - FifoRecorder::GetInstance().UseMemory(address, bytes_per_row, MemoryUpdate::TEXTURE_MAP, + FifoRecorder::GetInstance().UseMemory(address, bytes_per_row, MemoryUpdate::Type::TextureMap, true); address += dstStride; } -- cgit v1.2.3