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: rework buffer selection
[pcsx_rearmed.git]
/
plugins
/
gpu_neon
/
psx_gpu
/
psx_gpu_4x.c
diff --git
a/plugins/gpu_neon/psx_gpu/psx_gpu_4x.c
b/plugins/gpu_neon/psx_gpu/psx_gpu_4x.c
index
942b3d3
..
d7ec340
100644
(file)
--- a/
plugins/gpu_neon/psx_gpu/psx_gpu_4x.c
+++ b/
plugins/gpu_neon/psx_gpu/psx_gpu_4x.c
@@
-1,6
+1,10
@@
+#define select_enhancement_buf_index(psx_gpu, x) \
\r
+ ((psx_gpu)->enhancement_buf_by_x16[(u32)(x) / \
\r
+ (1024u / sizeof((psx_gpu)->enhancement_buf_by_x16))])
\r
+
\r
#define select_enhancement_buf_ptr(psx_gpu, x) \
\r
((psx_gpu)->enhancement_buf_ptr + \
\r
#define select_enhancement_buf_ptr(psx_gpu, x) \
\r
((psx_gpu)->enhancement_buf_ptr + \
\r
-
((psx_gpu)->enhancement_buf_by_x16[(x) / 16]
<< 20))
\r
+
(select_enhancement_buf_index(psx_gpu, x)
<< 20))
\r
\r
#if !defined(NEON_BUILD) || defined(SIMD_BUILD)
\r
\r
\r
#if !defined(NEON_BUILD) || defined(SIMD_BUILD)
\r
\r