aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornotaz2011-12-05 00:11:58 +0200
committernotaz2011-12-05 01:08:36 +0200
commit6c036261062e5ab1fe3826268966ef324de3787f (patch)
tree15576cd8d9b8f78237c89cc5aaef51e236d780d4 /libpcsxcore
parent24de2dd4dbdd50e44c91c40ebbc7d59ee1c0ac9b (diff)
downloadpcsx_rearmed-6c036261062e5ab1fe3826268966ef324de3787f.tar.gz
pcsx_rearmed-6c036261062e5ab1fe3826268966ef324de3787f.tar.bz2
pcsx_rearmed-6c036261062e5ab1fe3826268966ef324de3787f.zip
try to emulate GPU busy
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/psxdma.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpcsxcore/psxdma.c b/libpcsxcore/psxdma.c
index 6d7981f..63c2724 100644
--- a/libpcsxcore/psxdma.c
+++ b/libpcsxcore/psxdma.c
@@ -22,6 +22,7 @@
*/
#include "psxdma.h"
+#include "gpu.h"
// Dma0/1 in Mdec.c
// Dma3 in CdRom.c
@@ -173,6 +174,7 @@ void psxDma2(u32 madr, u32 bcr, u32 chcr) { // GPU
size = GPU_dmaChain((u32 *)psxM, madr & 0x1fffff);
if ((int)size <= 0)
size = gpuDmaChainSize(madr);
+ HW_GPU_STATUS &= ~PSXGPU_nBUSY;
// Tekken 3 = use 1.0 only (not 1.5x)
@@ -200,6 +202,7 @@ void gpuInterrupt() {
HW_DMA2_CHCR &= SWAP32(~0x01000000);
DMA_INTERRUPT(2);
}
+ HW_GPU_STATUS |= PSXGPU_nBUSY; // GPU no longer busy
}
void psxDma6(u32 madr, u32 bcr, u32 chcr) {