aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpu_neon/psx_gpu/psx_gpu_main.c
diff options
context:
space:
mode:
authornotaz2011-12-20 23:14:42 +0200
committernotaz2011-12-21 22:42:20 +0200
commite8c0e0bb6288aeeb2a4cb6709608340836778886 (patch)
tree1eb2fd3ef05feae2b3bbafa8c777cd44d47fec0e /plugins/gpu_neon/psx_gpu/psx_gpu_main.c
parent75e28f62b2a50044b58075d63d207409e0148409 (diff)
downloadpcsx_rearmed-e8c0e0bb6288aeeb2a4cb6709608340836778886.tar.gz
pcsx_rearmed-e8c0e0bb6288aeeb2a4cb6709608340836778886.tar.bz2
pcsx_rearmed-e8c0e0bb6288aeeb2a4cb6709608340836778886.zip
gpu_neon/psx_gpu: use external vram
Diffstat (limited to 'plugins/gpu_neon/psx_gpu/psx_gpu_main.c')
-rw-r--r--plugins/gpu_neon/psx_gpu/psx_gpu_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu_main.c b/plugins/gpu_neon/psx_gpu/psx_gpu_main.c
index 97f62ca..d610e8e 100644
--- a/plugins/gpu_neon/psx_gpu/psx_gpu_main.c
+++ b/plugins/gpu_neon/psx_gpu/psx_gpu_main.c
@@ -64,6 +64,7 @@ typedef struct
static gpu_dump_struct state;
psx_gpu_struct __attribute__((aligned(256))) _psx_gpu;
+u16 __attribute__((aligned(256))) _vram[1024 * 512];
#define percent_of(numerator, denominator) \
((((double)(numerator)) / (denominator)) * 100.0) \
@@ -175,7 +176,7 @@ int main(int argc, char *argv[])
screen = SDL_SetVideoMode(1024, 512, 32, 0);
}
- initialize_psx_gpu(psx_gpu);
+ initialize_psx_gpu(psx_gpu, _vram);
#ifdef PANDORA_BUILD
system("ofbset -fb /dev/fb1 -mem 6291456 -en 0");