From: notaz Date: Tue, 20 Dec 2011 21:19:52 +0000 (+0200) Subject: gpu_neon/psx_gpu: rename a define X-Git-Tag: r12~13 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bbbb7af9194079f8862b4e9ed2bb762f876e9c1;p=pcsx_rearmed.git gpu_neon/psx_gpu: rename a define --- diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu.c b/plugins/gpu_neon/psx_gpu/psx_gpu.c index f29fa7e7..c9175df3 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu.c @@ -91,7 +91,7 @@ struct render_block_handler_struct blend_blocks_function_type *blend_blocks; }; -#ifndef PANDORA_BUILD +#ifndef NEON_BUILD u32 fixed_reciprocal(u32 denominator, u32 *_shift) { @@ -252,7 +252,7 @@ u32 invalidate_texture_cache_region_viewport(psx_gpu_struct *psx_gpu, u32 x1, 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) { @@ -424,7 +424,7 @@ void flush_render_block_buffer(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 */\ @@ -1110,7 +1110,7 @@ void setup_spans_up_down(psx_gpu_struct *psx_gpu, vertex_struct *v_a, 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) @@ -1848,7 +1848,7 @@ void setup_blocks_unshaded_textured_dithered_swizzled_indirect(psx_gpu_struct //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); @@ -1871,7 +1871,7 @@ void texture_blocks_4bpp(psx_gpu_struct *psx_gpu); 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) { @@ -2157,7 +2157,7 @@ void shade_blocks_unshaded_textured_modulated_dithered_indirect(psx_gpu_struct 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); @@ -2207,7 +2207,7 @@ void shade_blocks_textured_unmodulated_##target(psx_gpu_struct *psx_gpu) \ 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) @@ -2218,7 +2218,7 @@ 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) { @@ -2452,7 +2452,7 @@ void blend_blocks_untextured_add_fourth_on(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) { @@ -2950,7 +2950,7 @@ void render_triangle(psx_gpu_struct *psx_gpu, vertex_struct *vertexes, 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) { @@ -3361,7 +3361,7 @@ void setup_sprite_8bpp(psx_gpu_struct *psx_gpu, s32 x, s32 y, s32 u, s32 v, 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); @@ -4235,7 +4235,7 @@ void render_block_fill(psx_gpu_struct *psx_gpu, u32 color, u32 x, u32 y, { 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; @@ -4384,7 +4384,7 @@ u64 get_us(void) return (tv.tv_sec * 1000000ULL) + tv.tv_usec; } -#ifdef PANDORA_BUILD +#ifdef NEON_BUILD u32 get_counter() { diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu_main.c b/plugins/gpu_neon/psx_gpu/psx_gpu_main.c index d610e8e7..1eadc794 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu_main.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu_main.c @@ -125,7 +125,7 @@ void update_screen(psx_gpu_struct *psx_gpu, SDL_Surface *screen) SDL_Flip(screen); } -#ifdef PANDORA_BUILD +#ifdef NEON_BUILD #include #include @@ -178,7 +178,7 @@ int main(int argc, char *argv[]) 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, @@ -188,7 +188,7 @@ int main(int argc, char *argv[]) -#ifdef PANDORA_BUILD +#ifdef NEON_BUILD //triangle_benchmark(psx_gpu); //return 0; #endif @@ -216,7 +216,7 @@ int main(int argc, char *argv[]) clear_stats(); -#ifdef PANDORA_BUILD +#ifdef NEON_BUILD init_counter(); #endif @@ -225,7 +225,7 @@ int main(int argc, char *argv[]) clear_stats(); -#ifdef PANDORA_BUILD +#ifdef NEON_BUILD u32 cycles = get_counter(); #endif @@ -233,7 +233,7 @@ int main(int argc, char *argv[]) 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);