mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
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:
parent
91d6f66ccb
commit
02df8f4487
@ -2051,7 +2051,11 @@ static void cmdfifo_w(voodoo_state *v, cmdfifo_info *f, offs_t offset, UINT32 da
|
|||||||
if (f->holes != 0)
|
if (f->holes != 0)
|
||||||
logerror("Unexpected CMDFIFO: AMin=%08X AMax=%08X Holes=%d WroteTo:%08X\n",
|
logerror("Unexpected CMDFIFO: AMin=%08X AMax=%08X Holes=%d WroteTo:%08X\n",
|
||||||
f->amin, f->amax, f->holes, addr);
|
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++;
|
f->depth++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user