diff options
| author | Mathew Maidment <mathew1800@gmail.com> | 2016-01-25 05:34:43 -0500 |
|---|---|---|
| committer | Mathew Maidment <mathew1800@gmail.com> | 2016-01-25 05:34:43 -0500 |
| commit | bdfcaa0e00162805efc692b4b7423f096bd75084 (patch) | |
| tree | 57b32b13d9640977b3270fa055865dcc9da2a1eb /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | 48e7e5b72e76899197b91fb3fe70f25c4339ca85 (diff) | |
| parent | 488e7bd46a2504fc763d65ca5151b66cd83e97f9 (diff) | |
Merge pull request #3560 from lioncash/fifo
Fifo: get rid of global variables
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 4962dc59ed..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<u16>(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<u16>(bp.newvalue & 0xFFFF), true); DEBUG_LOG(VIDEO, "SetPEToken + INT 0x%04x", (bp.newvalue & 0xFFFF)); return; @@ -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; |
