From 369c0c4ce20859448a82c509661cbfe90dcc8d44 Mon Sep 17 00:00:00 2001 From: magumagu Date: Thu, 8 May 2014 15:43:41 -0700 Subject: Opcode decoding: 0xC0 isn't a valid command. Fix our opcode decoders to handle this appropriately. --- Source/Core/VideoBackends/Software/OpcodeDecoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/Software/OpcodeDecoder.cpp') 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; } -- cgit v1.2.3