- Minimal fix to proper GFXFIFO parameter number handling

This commit is contained in:
shashClp 2008-12-30 04:22:33 +00:00
parent 9b770347c3
commit 2b345daffd
1 changed files with 6 additions and 5 deletions

View File

@ -1139,12 +1139,12 @@ void gfx3d_execute(u8 cmd, u32 param)
static void gfx3d_FlushFIFO() static void gfx3d_FlushFIFO()
{ {
#if 1 #if 1
GFX_FIFOclear(); GFX_FIFOclear();
#else #else
u32 cmd; u32 cmd;
u32 param; u32 param;
//INFO("GX FIFO tail at %i, GXstat 0x%08X\n", gxFIFO.tail, gxstat); //INFO("GX FIFO tail at %i, GXstat 0x%08X\n", gxFIFO.tail, gxstat);
if (gxFIFO.tail == 0) if (gxFIFO.tail == 0)
{ {
@ -1659,8 +1659,9 @@ void gfx3d_sendCommandToFIFO(u32 val)
case 0x50: // SWAP_BUFFERS - Swap Rendering Engine Buffer (W) case 0x50: // SWAP_BUFFERS - Swap Rendering Engine Buffer (W)
*(u32 *)(ARM9Mem.ARM9_REG + 0x540) = val; *(u32 *)(ARM9Mem.ARM9_REG + 0x540) = val;
gfx3d_glFlush(val); gfx3d_glFlush(val);
clCmd >>= 8; // This is reseted by glFlush, thus not needed here (fixes dsracing.nds)
clInd--; //clCmd >>= 8;
//clInd--;
break; break;
case 0x60: // VIEWPORT - Set Viewport (W) case 0x60: // VIEWPORT - Set Viewport (W)
*(u32 *)(ARM9Mem.ARM9_REG + 0x580) = val; *(u32 *)(ARM9Mem.ARM9_REG + 0x580) = val;