mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
VideoCommon/CommandProcessor: Pass system instance through constructor
Makes the use of the interface a little less noisy, especially given how much of the interface depends on an instance being present.
This commit is contained in:
parent
70b7a59456
commit
f97b2d472a
8 changed files with 170 additions and 174 deletions
|
@ -316,7 +316,7 @@ void FifoManager::RunGpuLoop()
|
|||
{
|
||||
auto& command_processor = m_system.GetCommandProcessor();
|
||||
auto& fifo = command_processor.GetFifo();
|
||||
command_processor.SetCPStatusFromGPU(m_system);
|
||||
command_processor.SetCPStatusFromGPU();
|
||||
|
||||
// check if we are able to run this buffer
|
||||
while (!command_processor.IsInterruptWaiting() &&
|
||||
|
@ -356,7 +356,7 @@ void FifoManager::RunGpuLoop()
|
|||
std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
command_processor.SetCPStatusFromGPU(m_system);
|
||||
command_processor.SetCPStatusFromGPU();
|
||||
|
||||
if (m_config_sync_gpu)
|
||||
{
|
||||
|
@ -484,7 +484,7 @@ int FifoManager::RunGpuOnCpu(int ticks)
|
|||
fifo.CPReadWriteDistance.fetch_sub(GPFifo::GATHER_PIPE_SIZE, std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
command_processor.SetCPStatusFromGPU(m_system);
|
||||
command_processor.SetCPStatusFromGPU();
|
||||
|
||||
if (reset_simd_state)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue