summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2019-12-07 18:40:15 -0800
committerGitHub <noreply@github.com>2019-12-07 18:40:15 -0800
commit19ea546a0af6d2a18be61cd2a79380e2735255a5 (patch)
tree71f065e77aea4071c981b55c6aa4bc5a0de90f6d /Source/Core/VideoCommon/BPStructs.cpp
parentfdb78b64e18baaaf1c8851fde3b5ee1d1da4d775 (diff)
parent1f46a6a64bfaade4550276879b475511fd11f136 (diff)
Merge pull request #8511 from lioncash/if-constexpr
VideoCommon/OpcodeDecoding: Make use of if constexpr
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index e8b0ee1f32..8be8f79806 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -25,6 +25,7 @@
#include "VideoCommon/Fifo.h"
#include "VideoCommon/FramebufferManager.h"
#include "VideoCommon/GeometryShaderManager.h"
+#include "VideoCommon/OpcodeDecoding.h"
#include "VideoCommon/PerfQueryBase.h"
#include "VideoCommon/PixelEngine.h"
#include "VideoCommon/PixelShaderManager.h"
@@ -341,7 +342,7 @@ static void BPWritten(const BPCmd& bp)
Memory::CopyFromEmu(texMem + tlutTMemAddr, addr, tlutXferCount);
- if (g_bRecordFifoData)
+ if (OpcodeDecoder::g_record_fifo_data)
FifoRecorder::GetInstance().UseMemory(addr, tlutXferCount, MemoryUpdate::TMEM);
TextureCacheBase::InvalidateAllBindPoints();
@@ -563,7 +564,7 @@ static void BPWritten(const BPCmd& bp)
}
}
- if (g_bRecordFifoData)
+ if (OpcodeDecoder::g_record_fifo_data)
FifoRecorder::GetInstance().UseMemory(src_addr, bytes_read, MemoryUpdate::TMEM);
TextureCacheBase::InvalidateAllBindPoints();