Skip to content

Commit 32e2193

Browse files
committed
Merge branch 'master' into libretro
2 parents e6ae132 + f244071 commit 32e2193

File tree

6 files changed

+307
-105
lines changed

6 files changed

+307
-105
lines changed

plugins/gpu_neon/psx_gpu/psx_gpu.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#endif
2626
#include "psx_gpu_simd.h"
2727
#include "psx_gpu_offsets.h"
28+
#include "../../../include/compiler_features.h"
2829

2930
#if 0
3031
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,
14791480

14801481
// this is some hacky mess, can this be improved somehow?
14811482
// ideally change things to not have to do this hack at all
1482-
void __attribute__((noinline))
1483-
setup_blocks_uv_adj_hack(psx_gpu_struct *psx_gpu, block_struct *block,
1483+
noinline void setup_blocks_uv_adj_hack(psx_gpu_struct *psx_gpu, block_struct *block,
14841484
edge_data_struct *span_edge_data, vec_4x32u *span_uvrg_offset)
14851485
{
14861486
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,
40974097

40984098
#endif
40994099

4100-
static void __attribute__((noinline))
4101-
setup_sprite_untextured_simple(psx_gpu_struct *psx_gpu, s32 x, s32 y, s32 u,
4102-
s32 v, s32 width, s32 height, u32 color)
4100+
static noinline void setup_sprite_untextured_simple(psx_gpu_struct *psx_gpu,
4101+
s32 x, s32 y, s32 u, s32 v, s32 width, s32 height, u32 color)
41034102
{
41044103
u32 r = color & 0xFF;
41054104
u32 g = (color >> 8) & 0xFF;

plugins/gpu_neon/psx_gpu_if.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <stdio.h>
1212
#include <assert.h>
13+
#include "../../include/compiler_features.h"
1314

1415
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
1516
#ifndef min
@@ -26,8 +27,7 @@ static int initialized;
2627

2728
#define PCSX
2829

29-
static __attribute__((noinline)) void
30-
sync_enhancement_buffers(int x, int y, int w, int h);
30+
static noinline void sync_enhancement_buffers(int x, int y, int w, int h);
3131

3232
#include "../gpulib/gpu.h"
3333
#include "psx_gpu/psx_gpu.c"
@@ -110,8 +110,7 @@ void renderer_finish(void)
110110
initialized = 0;
111111
}
112112

113-
static __attribute__((noinline)) void
114-
sync_enhancement_buffers(int x, int y, int w, int h)
113+
static noinline void sync_enhancement_buffers(int x, int y, int w, int h)
115114
{
116115
int i, right = x + w, bottom = y + h;
117116
const u16 *src = gpu.vram;

0 commit comments

Comments
 (0)