From: notaz Date: Sun, 4 Jan 2026 02:51:00 +0000 (+0200) Subject: gpu_neon: unbreak build X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f24407162f513a2f0b26b31cb5fb7df0eac831c3;p=pcsx_rearmed.git gpu_neon: unbreak build --- diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu.c b/plugins/gpu_neon/psx_gpu/psx_gpu.c index 4e8d3d32..3a2b6b9c 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu.c @@ -25,6 +25,7 @@ #endif #include "psx_gpu_simd.h" #include "psx_gpu_offsets.h" +#include "../../../include/compiler_features.h" #if 0 void dump_r_d(const char *name, void *dump); @@ -1479,8 +1480,7 @@ void setup_spans_up_down(psx_gpu_struct *psx_gpu, vertex_struct *v_a, // this is some hacky mess, can this be improved somehow? // ideally change things to not have to do this hack at all -void __attribute__((noinline)) -setup_blocks_uv_adj_hack(psx_gpu_struct *psx_gpu, block_struct *block, +noinline void setup_blocks_uv_adj_hack(psx_gpu_struct *psx_gpu, block_struct *block, edge_data_struct *span_edge_data, vec_4x32u *span_uvrg_offset) { size_t span_i = span_uvrg_offset - psx_gpu->span_uvrg_offset; @@ -4097,9 +4097,8 @@ void setup_sprite_untextured_512(psx_gpu_struct *psx_gpu, s32 x, s32 y, s32 u, #endif -static void __attribute__((noinline)) -setup_sprite_untextured_simple(psx_gpu_struct *psx_gpu, s32 x, s32 y, s32 u, - s32 v, s32 width, s32 height, u32 color) +static noinline void setup_sprite_untextured_simple(psx_gpu_struct *psx_gpu, + s32 x, s32 y, s32 u, s32 v, s32 width, s32 height, u32 color) { u32 r = color & 0xFF; u32 g = (color >> 8) & 0xFF; diff --git a/plugins/gpu_neon/psx_gpu_if.c b/plugins/gpu_neon/psx_gpu_if.c index 8ab364a8..b5d3b9b2 100644 --- a/plugins/gpu_neon/psx_gpu_if.c +++ b/plugins/gpu_neon/psx_gpu_if.c @@ -10,6 +10,7 @@ #include #include +#include "../../include/compiler_features.h" #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #ifndef min @@ -26,8 +27,7 @@ static int initialized; #define PCSX -static __attribute__((noinline)) void -sync_enhancement_buffers(int x, int y, int w, int h); +static noinline void sync_enhancement_buffers(int x, int y, int w, int h); #include "../gpulib/gpu.h" #include "psx_gpu/psx_gpu.c" @@ -110,8 +110,7 @@ void renderer_finish(void) initialized = 0; } -static __attribute__((noinline)) void -sync_enhancement_buffers(int x, int y, int w, int h) +static noinline void sync_enhancement_buffers(int x, int y, int w, int h) { int i, right = x + w, bottom = y + h; const u16 *src = gpu.vram;