X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_neon%2Fpsx_gpu%2Fpsx_gpu.c;h=c9175df3255812d06d1c9d8066be9d64bf7d07e8;hp=8d4b8b82c2803794179a2baa19936d53458ad6f9;hb=2bbbb7af9194079f8862b4e9ed2bb762f876e9c1;hpb=75e28f62b2a50044b58075d63d207409e0148409 diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu.c b/plugins/gpu_neon/psx_gpu/psx_gpu.c index 8d4b8b82..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; @@ -4315,7 +4315,7 @@ void initialize_reciprocal_table(void) #define dither_table_row(a, b, c, d) \ ((a & 0xFF) | ((b & 0xFF) << 8) | ((c & 0xFF) << 16) | ((d & 0xFF) << 24)) \ -void initialize_psx_gpu(psx_gpu_struct *psx_gpu) +void initialize_psx_gpu(psx_gpu_struct *psx_gpu, u16 *vram) { vec_8x16u test_mask = { { { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 } } }; @@ -4345,7 +4345,7 @@ void initialize_psx_gpu(psx_gpu_struct *psx_gpu) psx_gpu->render_state_base = 0; psx_gpu->num_blocks = 0; - psx_gpu->vram_ptr = psx_gpu->_vram; + psx_gpu->vram_ptr = vram; psx_gpu->texture_page_ptr = psx_gpu->vram_ptr; psx_gpu->clut_ptr = psx_gpu->vram_ptr; @@ -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() {