summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2014-08-24 18:17:39 -0400
committercomex <comexk@gmail.com>2014-08-26 12:43:39 -0400
commit45a4236283f412ed62eb2a1f6ace54090bbb3a3f (patch)
treebdb348627b619d9102eaaef946ab5b2f8bf0496d /Source/Core/VideoCommon/OpcodeDecoding.cpp
parent14125cf9519d3ca17d2ea160e83112cf8b7b27a2 (diff)
A tiny restructuring to allow inlining of FifoCommandRunnable. Probably useless.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp
index 4dc80f8c3e..ff9cd8e735 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.cpp
+++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp
@@ -469,12 +469,13 @@ void OpcodeDecoder_Shutdown()
u32 OpcodeDecoder_Run(bool skipped_frame)
{
u32 totalCycles = 0;
- u32 cycles = FifoCommandRunnable();
- while (cycles > 0)
+ while (true)
{
+ u32 cycles = FifoCommandRunnable();
+ if (cycles == 0)
+ break;
skipped_frame ? DecodeSemiNop() : Decode();
totalCycles += cycles;
- cycles = FifoCommandRunnable();
}
return totalCycles;
}