voodoo.c: Fixed an edge case where CMDFIFO execution would get stuck if the first word in CMDFIFO buffer is written out of order. (nw)

This commit is contained in:
Ville Linde 2014-04-18 00:53:46 +00:00
parent 91d6f66ccb
commit 02df8f4487

View File

@ -2051,7 +2051,11 @@ static void cmdfifo_w(voodoo_state *v, cmdfifo_info *f, offs_t offset, UINT32 da
if (f->holes != 0)
logerror("Unexpected CMDFIFO: AMin=%08X AMax=%08X Holes=%d WroteTo:%08X\n",
f->amin, f->amax, f->holes, addr);
f->amin = f->amax = addr;
//f->amin = f->amax = addr;
f->holes += (addr - f->base) / 4;
f->amin = f->base;
f->amax = addr;
f->depth++;
}