summaryrefslogtreecommitdiff
path: root/libpcsxcore/plugins.c
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2016-05-15 16:26:39 +0100
committeriCatButler <i.am.catbutler@gmail.com>2016-05-15 16:26:39 +0100
commit2a24b74c12c6d248409dc93b35edbc373d03b29c (patch)
tree94bf6d4022a5209c7713fe4b8107342839b193f7 /libpcsxcore/plugins.c
parentfed51208575d3b67789ded126a38c7da3b23cef0 (diff)
downloadpcsxr-2a24b74c12c6d248409dc93b35edbc373d03b29c.tar.gz
Implement vertex caching
- Try using Blade_Arma's vertex cache to find untracked vertices - Fix GTE_LOG - Add more logging spew - Update debug mode to track cached vertices
Diffstat (limited to 'libpcsxcore/plugins.c')
-rwxr-xr-xlibpcsxcore/plugins.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c
index b42c5d1d..567630c8 100755
--- a/libpcsxcore/plugins.c
+++ b/libpcsxcore/plugins.c
@@ -57,6 +57,7 @@ GPUcursor GPU_cursor;
GPUaddVertex GPU_addVertex;
GPUsetSpeed GPU_setSpeed;
GPUpgxpMemory GPU_pgxpMemory;
+GPUpgxpCacheVertex GPU_pgxpCacheVertex;
CDRinit CDR_init;
CDRshutdown CDR_shutdown;
@@ -220,6 +221,7 @@ void CALLBACK GPU__cursor(int player, int x, int y) {}
void CALLBACK GPU__addVertex(short sx,short sy,s64 fx,s64 fy,s64 fz) {}
void CALLBACK GPU__setSpeed(float newSpeed) {}
void CALLBACK GPU__pgxpMemory(unsigned int addr, unsigned char* pVRAM) {}
+void CALLBACK GPU__pgxpCacheVertex(short sx, short sy, const unsigned char* _pVertex) {}
#define LoadGpuSym1(dest, name) \
LoadSym(GPU_##dest, GPU##dest, name, TRUE);
@@ -268,6 +270,7 @@ static int LoadGPUplugin(const char *GPUdll) {
LoadGpuSym0(addVertex, "GPUaddVertex");
LoadGpuSym0(setSpeed, "GPUsetSpeed");
LoadGpuSym0(pgxpMemory, "GPUpgxpMemory");
+ LoadGpuSym0(pgxpCacheVertex, "GPUpgxpCacheVertex");
LoadGpuSym0(configure, "GPUconfigure");
LoadGpuSym0(test, "GPUtest");
LoadGpuSym0(about, "GPUabout");