dma: change timing back to 1.92 levels
authornotaz <notasas@gmail.com>
Fri, 4 Feb 2011 13:51:42 +0000 (15:51 +0200)
committernotaz <notasas@gmail.com>
Fri, 4 Feb 2011 13:53:07 +0000 (15:53 +0200)
fixes X-Files, we'll see what it breaks

libpcsxcore/psxdma.c

index b7d6d6a..1274d93 100644 (file)
@@ -140,7 +140,7 @@ void psxDma2(u32 madr, u32 bcr, u32 chcr) { // GPU
                        psxCpu->Clear(madr, size);
 
                        // already 32-bit word size ((size * 4) / 4)
-                       GPUDMA_INT(size);
+                       GPUDMA_INT(size / 4);
                        return;
 
                case 0x01000201: // mem2vram
@@ -159,7 +159,7 @@ void psxDma2(u32 madr, u32 bcr, u32 chcr) { // GPU
                        GPU_writeDataMem(ptr, size);
 
                        // already 32-bit word size ((size * 4) / 4)
-                       GPUDMA_INT(size);
+                       GPUDMA_INT(size / 4);
                        return;
 
                case 0x01000401: // dma chain