notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpus: return DMA word count to avoid 1 list walk
[pcsx_rearmed.git]
/
plugins
/
dfxvideo
/
gpu.c
diff --git
a/plugins/dfxvideo/gpu.c
b/plugins/dfxvideo/gpu.c
index
9a614de
..
0d105f8
100644
(file)
--- a/
plugins/dfxvideo/gpu.c
+++ b/
plugins/dfxvideo/gpu.c
@@
-1042,6
+1042,7
@@
long CALLBACK GPUdmaChain(uint32_t * baseAddrL, uint32_t addr)
uint32_t dmaMem;
unsigned char * baseAddrB;
short count;unsigned int DMACommandCounter = 0;
uint32_t dmaMem;
unsigned char * baseAddrB;
short count;unsigned int DMACommandCounter = 0;
+ long dmaWords = 0;
GPUIsBusy;
GPUIsBusy;
@@
-1056,6
+1057,7
@@
long CALLBACK GPUdmaChain(uint32_t * baseAddrL, uint32_t addr)
if(CheckForEndlessLoop(addr)) break;
count = baseAddrB[addr+3];
if(CheckForEndlessLoop(addr)) break;
count = baseAddrB[addr+3];
+ dmaWords += 1 + count;
dmaMem=addr+4;
dmaMem=addr+4;
@@
-1067,7
+1069,7
@@
long CALLBACK GPUdmaChain(uint32_t * baseAddrL, uint32_t addr)
GPUIsIdle;
GPUIsIdle;
- return
0
;
+ return
dmaWords
;
}
////////////////////////////////////////////////////////////////////////
}
////////////////////////////////////////////////////////////////////////