diff options
| author | comex <comexk@gmail.com> | 2014-08-26 20:17:27 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2014-08-26 20:17:27 -0400 |
| commit | 75b9d6da482aaa27df2865092a7dbf67f8333e46 (patch) | |
| tree | ac321b590b5db2d2e841567be8b1720896427b60 /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | f52888d3ec9a7ca8edf673293c28b28b0fd3516b (diff) | |
| parent | e31d6feaa23afc00a84762300e37d2f634a659ff (diff) | |
Merge pull request #867 from comex/gpu-determinism-pr1
Some small preparatory changes to VideoCommon for GPU thread determinism mode.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 7 |
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; } |
