diff options
| author | Tony Wasserka <neobrainx@gmail.com> | 2014-05-16 15:59:59 +0200 |
|---|---|---|
| committer | Tony Wasserka <neobrainx@gmail.com> | 2014-05-16 15:59:59 +0200 |
| commit | 25e8dc0aed56d60b317b6f725e0996ad55af9f7d (patch) | |
| tree | b1a85d274082d41ad0c0f1d2fa857c9da252363d /Source/Core/VideoBackends/Software/OpcodeDecoder.cpp | |
| parent | 36720e6822a8049c34ff1bfe4ea24e47f85847ca (diff) | |
| parent | 369c0c4ce20859448a82c509661cbfe90dcc8d44 (diff) | |
Merge pull request #354 from magumagu/gx-primitive-mask
Opcode decoding: 0xC0 isn't a valid command.
Diffstat (limited to 'Source/Core/VideoBackends/Software/OpcodeDecoder.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/OpcodeDecoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/OpcodeDecoder.cpp b/Source/Core/VideoBackends/Software/OpcodeDecoder.cpp index f9d01b7de5..52bd632e15 100644 --- a/Source/Core/VideoBackends/Software/OpcodeDecoder.cpp +++ b/Source/Core/VideoBackends/Software/OpcodeDecoder.cpp @@ -201,7 +201,7 @@ void DecodeStandard(u32 bufferSize) // draw primitives default: - if (Cmd & 0x80) + if ((Cmd & 0xC0) == 0x80) { u8 vatIndex = Cmd & GX_VAT_MASK; u8 primitiveType = (Cmd & GX_PRIMITIVE_MASK) >> GX_PRIMITIVE_SHIFT; @@ -283,7 +283,7 @@ bool CommandRunnable(u32 iBufferSize) // draw primitives default: - if (Cmd & 0x80) + if ((Cmd & 0xC0) == 0x80) minSize = 3; break; } |
