gpu_neon: unbreak build master github/master
authornotaz <notasas@gmail.com>
Sun, 4 Jan 2026 02:51:00 +0000 (04:51 +0200)
committernotaz <notasas@gmail.com>
Sun, 4 Jan 2026 02:51:00 +0000 (04:51 +0200)
plugins/gpu_neon/psx_gpu/psx_gpu.c
plugins/gpu_neon/psx_gpu_if.c

index 4e8d3d3..3a2b6b9 100644 (file)
@@ -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;
index 8ab364a..b5d3b9b 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <stdio.h>
 #include <assert.h>
+#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;