diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-11 20:08:35 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-11 20:08:35 +0000 |
| commit | 5d5a8db6c6174e5e43b90f91747214c695fa7f9f (patch) | |
| tree | e555f6696fd1f4ad4493c4efa340e74e2be805aa /libpcsxcore/gpu.c | |
| parent | b3dc02dc3fbc4c22966c0026e93eb86261aa6839 (diff) | |
| download | pcsxr-5d5a8db6c6174e5e43b90f91747214c695fa7f9f.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64466 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/gpu.c')
| -rw-r--r-- | libpcsxcore/gpu.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libpcsxcore/gpu.c b/libpcsxcore/gpu.c index 63a18cf8..05137541 100644 --- a/libpcsxcore/gpu.c +++ b/libpcsxcore/gpu.c @@ -20,8 +20,6 @@ #include "gpu.h"
#include "psxdma.h"
-extern unsigned int hSyncCount;
-
#define GPUSTATUS_ODDLINES 0x80000000
#define GPUSTATUS_DMABITS 0x60000000 // Two bits
#define GPUSTATUS_READYFORCOMMANDS 0x10000000
@@ -39,8 +37,6 @@ extern unsigned int hSyncCount; #define GPUSTATUS_DRAWINGALLOWED 0x00000400
#define GPUSTATUS_DITHER 0x00000200
-
-
// Taken from PEOPS SOFTGPU
u32 lUsedAddr[3];
@@ -75,13 +71,13 @@ static u32 gpuDmaChainSize(u32 addr) { // # 32-bit blocks to transfer
size += psxMu8( addr + 3 );
-
+
// next 32-bit pointer
addr = psxMu32( addr & ~0x3 ) & 0xffffff;
size += 1;
} while (addr != 0xffffff);
-
+
return size;
}
@@ -163,7 +159,7 @@ void psxDma2(u32 madr, u32 bcr, u32 chcr) { // GPU size = gpuDmaChainSize(madr);
GPU_dmaChain((u32 *)psxM, madr & 0x1fffff);
-
+
// Tekken 3 = use 1.0 only (not 1.5x)
// Einhander = parse linked list in pieces (todo)
|
