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) \
SDL_Flip(screen);
}
-#ifdef PANDORA_BUILD
+#ifdef NEON_BUILD
#include <fcntl.h>
#include <linux/fb.h>
screen = SDL_SetVideoMode(1024, 512, 32, 0);
}
- initialize_psx_gpu(psx_gpu);
+ initialize_psx_gpu(psx_gpu, _vram);
-#ifdef PANDORA_BUILD
+#ifdef NEON_BUILD
system("ofbset -fb /dev/fb1 -mem 6291456 -en 0");
u32 fbdev_handle = open("/dev/fb1", O_RDWR);
psx_gpu->vram_ptr = (mmap((void *)0x50000000, 1024 * 1024 * 2, PROT_READ | PROT_WRITE,
-#ifdef PANDORA_BUILD
+#ifdef NEON_BUILD
//triangle_benchmark(psx_gpu);
//return 0;
#endif
clear_stats();
-#ifdef PANDORA_BUILD
+#ifdef NEON_BUILD
init_counter();
#endif
clear_stats();
-#ifdef PANDORA_BUILD
+#ifdef NEON_BUILD
u32 cycles = get_counter();
#endif
flush_render_block_buffer(psx_gpu);
printf("%s: ", argv[1]);
-#ifdef PANDORA_BUILD
+#ifdef NEON_BUILD
u32 cycles_elapsed = get_counter() - cycles;
printf("%d\n", cycles_elapsed);