mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Opcode decoding: 0xC0 isn't a valid command.
Fix our opcode decoders to handle this appropriately.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user