From 6d7e2c56d997171727cf88c7380025cd59de7618 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Wed, 7 Mar 2018 22:23:01 +0000 Subject: [PATCH] Gif: Allow flag setting for PRIM/REG transfers on 0 length packets. Fixes Reservoir Dogs --- pcsx2/Gif_Unit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/Gif_Unit.h b/pcsx2/Gif_Unit.h index 7f51e0a3e3..0daa05f139 100644 --- a/pcsx2/Gif_Unit.h +++ b/pcsx2/Gif_Unit.h @@ -290,8 +290,8 @@ struct Gif_Path { gifTag.setTag(&buffer[curOffset], 1); - //Don't set state to PACKED if it is a NOP packet - if(gifTag.tag.NLOOP > 0) + //Don't set state to PACKED if it is a NOP packet. Must check if PRIM or Regs are transferring + if (gifTag.tag.NLOOP > 0 || gifTag.tag.NREG != 0 || gifTag.tag.PRE) state = (GIF_PATH_STATE)(gifTag.tag.FLG + 1); // We don't have enough data for a complete GS packet