notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpu_neon: adjust some comments and things
[pcsx_rearmed.git]
/
plugins
/
gpu_neon
/
psx_gpu
/
psx_gpu.c
diff --git
a/plugins/gpu_neon/psx_gpu/psx_gpu.c
b/plugins/gpu_neon/psx_gpu/psx_gpu.c
index
1d513d8
..
51ad152
100644
(file)
--- a/
plugins/gpu_neon/psx_gpu/psx_gpu.c
+++ b/
plugins/gpu_neon/psx_gpu/psx_gpu.c
@@
-22,6
+22,13
@@
#endif
#include "psx_gpu_simd.h"
#endif
#include "psx_gpu_simd.h"
+#if 0
+void dump_r_d(const char *name, void *dump);
+void dump_r_q(const char *name, void *dump);
+#define dumprd(n) dump_r_d(#n, n.e)
+#define dumprq(n) dump_r_q(#n, n.e)
+#endif
+
u32 span_pixels = 0;
u32 span_pixel_blocks = 0;
u32 spans = 0;
u32 span_pixels = 0;
u32 span_pixel_blocks = 0;
u32 spans = 0;
@@
-769,13
+776,13
@@
void compute_all_gradients(psx_gpu_struct *psx_gpu, vertex_struct *a,
{ \
u32 _num_spans = &span_edge_data_element - psx_gpu->span_edge_data; \
if (_num_spans > MAX_SPANS) \
{ \
u32 _num_spans = &span_edge_data_element - psx_gpu->span_edge_data; \
if (_num_spans > MAX_SPANS) \
- *(
int *)0 = 1;
\
+ *(
volatile int *)0 = 1;
\
if (_num_spans < psx_gpu->num_spans) \
{ \
if(span_edge_data_element.num_blocks > MAX_BLOCKS_PER_ROW) \
if (_num_spans < psx_gpu->num_spans) \
{ \
if(span_edge_data_element.num_blocks > MAX_BLOCKS_PER_ROW) \
- *(
int *)0 = 1;
\
- if(span_edge_data_element.y >
2048)
\
- *(
int *)0 = 1;
\
+ *(
volatile int *)0 = 2;
\
+ if(span_edge_data_element.y >
= 2048)
\
+ *(
volatile int *)0 = 3;
\
} \
} \
} \
} \
@@
-788,7
+795,7
@@
void compute_all_gradients(psx_gpu_struct *psx_gpu, vertex_struct *a,
vec_2x64s alternate_x; \
vec_2x64s alternate_dx_dy; \
vec_4x32s alternate_x_32; \
vec_2x64s alternate_x; \
vec_2x64s alternate_dx_dy; \
vec_4x32s alternate_x_32; \
- vec_
2x32s
alternate_x_16; \
+ vec_
4x16u
alternate_x_16; \
\
vec_4x16u alternate_select; \
vec_4x16s y_mid_point; \
\
vec_4x16u alternate_select; \
vec_4x16s y_mid_point; \