mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-03 00:42:39 +00:00
Opcode decoding: 0xC0 isn't a valid command.
Fix our opcode decoders to handle this appropriately.
This commit is contained in:
parent
b4e1ac5f08
commit
369c0c4ce2
3 changed files with 6 additions and 6 deletions
|
@ -201,7 +201,7 @@ u32 FifoCommandRunnable(u32 &command_size)
|
|||
break;
|
||||
|
||||
default:
|
||||
if (cmd_byte & 0x80)
|
||||
if ((cmd_byte & 0xC0) == 0x80)
|
||||
{
|
||||
// check if we can read the header
|
||||
if (buffer_size >= 3)
|
||||
|
@ -346,7 +346,7 @@ static void Decode()
|
|||
|
||||
// draw primitives
|
||||
default:
|
||||
if (cmd_byte & 0x80)
|
||||
if ((cmd_byte & 0xC0) == 0x80)
|
||||
{
|
||||
// load vertices (use computed vertex size from FifoCommandRunnable above)
|
||||
u16 numVertices = DataReadU16();
|
||||
|
@ -434,7 +434,7 @@ static void DecodeSemiNop()
|
|||
|
||||
// draw primitives
|
||||
default:
|
||||
if (cmd_byte & 0x80)
|
||||
if ((cmd_byte & 0xC0) == 0x80)
|
||||
{
|
||||
// load vertices (use computed vertex size from FifoCommandRunnable above)
|
||||
u16 numVertices = DataReadU16();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue