From 5ebd1e215b29bdbf74317ea1b6cb19578db0e41a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 23 Jan 2016 23:20:13 -0500 Subject: Fifo: Make g_bSkipCurrentFrame a TU-local variable This is only ever queried, making it a global isn't necessary. --- Source/Core/VideoCommon/BPStructs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/BPStructs.cpp') diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 4962dc59ed..ff125652a6 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -380,7 +380,7 @@ static void BPWritten(const BPCmd& bp) case BPMEM_CLEARBBOX2: // Don't compute bounding box if this frame is being skipped! // Wrong but valid values are better than bogus values... - if (!Fifo::g_bSkipCurrentFrame) + if (!Fifo::WillSkipCurrentFrame()) { u8 offset = bp.address & 2; BoundingBox::active = true; -- cgit v1.2.3 From 32ce2be2bfc74f0b395800328c494b423480358d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 23 Jan 2016 23:31:13 -0500 Subject: Fifo: Make g_use_deterministic_gpu_thread a TU-local variable --- Source/Core/VideoCommon/BPStructs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/BPStructs.cpp') diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index ff125652a6..aaa73d991d 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -179,7 +179,7 @@ static void BPWritten(const BPCmd& bp) switch (bp.newvalue & 0xFF) { case 0x02: - if (!Fifo::g_use_deterministic_gpu_thread) + if (!Fifo::UseDeterministicGPUThread()) PixelEngine::SetFinish(); // may generate interrupt DEBUG_LOG(VIDEO, "GXSetDrawDone SetPEFinish (value: 0x%02X)", (bp.newvalue & 0xFFFF)); return; @@ -190,12 +190,12 @@ static void BPWritten(const BPCmd& bp) } return; case BPMEM_PE_TOKEN_ID: // Pixel Engine Token ID - if (!Fifo::g_use_deterministic_gpu_thread) + if (!Fifo::UseDeterministicGPUThread()) PixelEngine::SetToken(static_cast(bp.newvalue & 0xFFFF), false); DEBUG_LOG(VIDEO, "SetPEToken 0x%04x", (bp.newvalue & 0xFFFF)); return; case BPMEM_PE_TOKEN_INT_ID: // Pixel Engine Interrupt Token ID - if (!Fifo::g_use_deterministic_gpu_thread) + if (!Fifo::UseDeterministicGPUThread()) PixelEngine::SetToken(static_cast(bp.newvalue & 0xFFFF), true); DEBUG_LOG(VIDEO, "SetPEToken + INT 0x%04x", (bp.newvalue & 0xFFFF)); return; -- cgit v1.2.3