mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
FifoRecorder: Move instance to System.
This commit is contained in:
@ -405,7 +405,7 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager, XFStateManager&
|
||||
memory.CopyFromEmu(texMem + tmem_addr, addr, tmem_transfer_count);
|
||||
|
||||
if (OpcodeDecoder::g_record_fifo_data)
|
||||
FifoRecorder::GetInstance().UseMemory(addr, tmem_transfer_count, MemoryUpdate::Type::TMEM);
|
||||
system.GetFifoRecorder().UseMemory(addr, tmem_transfer_count, MemoryUpdate::Type::TMEM);
|
||||
|
||||
TMEM::InvalidateAll();
|
||||
|
||||
@ -624,7 +624,10 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager, XFStateManager&
|
||||
}
|
||||
|
||||
if (OpcodeDecoder::g_record_fifo_data)
|
||||
FifoRecorder::GetInstance().UseMemory(src_addr, bytes_read, MemoryUpdate::Type::TMEM);
|
||||
{
|
||||
Core::System::GetInstance().GetFifoRecorder().UseMemory(src_addr, bytes_read,
|
||||
MemoryUpdate::Type::TMEM);
|
||||
}
|
||||
|
||||
TMEM::InvalidateAll();
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ public:
|
||||
// process them.
|
||||
if (g_record_fifo_data && static_cast<Opcode>(data[0]) != Opcode::GX_CMD_CALL_DL)
|
||||
{
|
||||
FifoRecorder::GetInstance().WriteGPCommand(data, size);
|
||||
Core::System::GetInstance().GetFifoRecorder().WriteGPCommand(data, size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user