blend_blocks_function_type *blend_blocks;
};
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
u32 fixed_reciprocal(u32 denominator, u32 *_shift)
{
void update_texture_8bpp_cache_slice(psx_gpu_struct *psx_gpu,
u32 texture_page);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
void update_texture_4bpp_cache(psx_gpu_struct *psx_gpu)
{
void compute_all_gradients(psx_gpu_struct *psx_gpu, vertex_struct *a,
vertex_struct *b, vertex_struct *c);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
#define setup_gradient_calculation_input(set, vertex) \
/* First type is: uvrg bxxx xxxx */\
vertex_struct *v_b, vertex_struct *v_c);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
void setup_spans_up_left(psx_gpu_struct *psx_gpu, vertex_struct *v_a,
vertex_struct *v_b, vertex_struct *v_c)
//setup_blocks_builder(unshaded, untextured, undithered, unswizzled, direct);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
setup_blocks_builder(shaded, textured, dithered, swizzled, indirect);
setup_blocks_builder(shaded, textured, dithered, unswizzled, indirect);
void texture_blocks_8bpp(psx_gpu_struct *psx_gpu);
void texture_blocks_16bpp(psx_gpu_struct *psx_gpu);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
void texture_blocks_untextured(psx_gpu_struct *psx_gpu)
{
void shade_blocks_unshaded_textured_modulated_undithered_indirect(psx_gpu_struct
*psx_gpu);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
shade_blocks_textured_modulated_builder(shaded, dithered, direct);
shade_blocks_textured_modulated_builder(shaded, undithered, direct);
void shade_blocks_textured_unmodulated_indirect(psx_gpu_struct *psx_gpu);
void shade_blocks_textured_unmodulated_direct(psx_gpu_struct *psx_gpu);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
shade_blocks_textured_unmodulated_builder(indirect)
shade_blocks_textured_unmodulated_builder(direct)
void shade_blocks_unshaded_untextured_indirect(psx_gpu_struct *psx_gpu);
void shade_blocks_unshaded_untextured_direct(psx_gpu_struct *psx_gpu);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
void shade_blocks_unshaded_untextured_indirect(psx_gpu_struct *psx_gpu)
{
void blend_blocks_textured_unblended_off(psx_gpu_struct *psx_gpu);
void blend_blocks_textured_unblended_on(psx_gpu_struct *psx_gpu);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
void blend_blocks_textured_unblended_off(psx_gpu_struct *psx_gpu)
{
void texture_sprite_blocks_8bpp(psx_gpu_struct *psx_gpu);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
void texture_sprite_blocks_8bpp(psx_gpu_struct *psx_gpu)
{
void setup_sprite_16bpp(psx_gpu_struct *psx_gpu, s32 x, s32 y, s32 u, s32 v,
s32 width, s32 height, u32 color);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
setup_sprite_tiled_builder(4bpp);
setup_sprite_tiled_builder(8bpp);
{
invalidate_texture_cache_region(psx_gpu, x, y, x + width - 1, y + height - 1);
-#ifndef PANDORA_BUILD
+#ifndef NEON_BUILD
u32 r = color & 0xFF;
u32 g = (color >> 8) & 0xFF;
u32 b = (color >> 16) & 0xFF;
return (tv.tv_sec * 1000000ULL) + tv.tv_usec;
}
-#ifdef PANDORA_BUILD
+#ifdef NEON_BUILD
u32 get_counter()
{
SDL_Flip(screen);
}
-#ifdef PANDORA_BUILD
+#ifdef NEON_BUILD
#include <fcntl.h>
#include <linux/fb.h>
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);