notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff49d6b
)
gpu_neon: more complicated overflow check
author
notaz
<notasas@gmail.com>
Thu, 31 Aug 2023 22:29:28 +0000
(
01:29
+0300)
committer
notaz
<notasas@gmail.com>
Thu, 31 Aug 2023 22:35:30 +0000
(
01:35
+0300)
plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
patch
|
blob
|
blame
|
history
diff --git
a/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
b/plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
index
4dd21e7
..
c756299
100644
(file)
--- a/
plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
+++ b/
plugins/gpu_neon/psx_gpu/psx_gpu_parse.c
@@
-972,9
+972,13
@@
static int disable_main_render;
static int check_enhanced_range(psx_gpu_struct *psx_gpu, int x, int x_end)
{
- //
simple
reject to avoid oveflowing the 1024 width
+ // reject to avoid oveflowing the 1024 width
// (assume some offscreen render-to-texture thing)
- if (x >= (int)(psx_gpu->saved_viewport_start_x + 512))
+ int fb_index;
+ if (x < 0)
+ return 1;
+ fb_index = select_enhancement_buf_index(psx_gpu, x);
+ if (x >= psx_gpu->enhancement_buf_start[fb_index] + 512)
return 0;
return 1;