summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/gpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/peopsxgl/gpu.c')
-rwxr-xr-xplugins/peopsxgl/gpu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c
index 5becb698..99ef36ba 100755
--- a/plugins/peopsxgl/gpu.c
+++ b/plugins/peopsxgl/gpu.c
@@ -716,7 +716,7 @@ long CALLBACK GPUopen(HWND hwndGPU)
InitializeTextureStore(); // init texture mem
resetGteVertices();
-
+
// lGPUstatusRet = 0x74000000;
// with some emus, we could do the OGL init right here... oh my
@@ -3138,6 +3138,7 @@ long CALLBACK GPUdmaChain(uint32_t *baseAddrL, uint32_t addr)
baseAddrB = (unsigned char*) baseAddrL;
+ uint32_t depthCount = 0;
do
{
if(iGPUHeight==512) addr&=0x1FFFFC;
@@ -3151,9 +3152,11 @@ long CALLBACK GPUdmaChain(uint32_t *baseAddrL, uint32_t addr)
if (count > 0)
{
- PGXP_SetAddress(dmaMem >> 2);
+ PGXP_SetAddress(dmaMem >> 2, &baseAddrL[dmaMem >> 2], count);
GPUwriteDataMem(&baseAddrL[dmaMem >> 2], count);
}
+ else
+ PGXP_SetDepth(depthCount++);
addr = baseAddrL[addr>>2]&0xffffff;
}