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
psx_gpu: switch to 1024 width again.
[pcsx_rearmed.git]
/
plugins
/
gpulib
/
vout_pl.c
diff --git
a/plugins/gpulib/vout_pl.c
b/plugins/gpulib/vout_pl.c
index
5131034
..
cbd8034
100644
(file)
--- a/
plugins/gpulib/vout_pl.c
+++ b/
plugins/gpulib/vout_pl.c
@@
-68,18
+68,19
@@
static void blit(void)
uint8_t *dest;
dest = (uint8_t *)screen_buf;
uint8_t *dest;
dest = (uint8_t *)screen_buf;
- if (dest == NULL)
+ if (dest == NULL
|| w == 0 || stride == 0
)
return;
if (gpu.state.enhancement_active) {
return;
if (gpu.state.enhancement_active) {
- vram = gpu.enhancement_bufer;
+ // this layout is gpu_neon specific..
+ vram = gpu.enhancement_bufer +
+ (x + 8) / stride * 1024 * 1024;
x *= 2;
y *= 2;
w *= 2;
h *= 2;
stride *= 2;
x *= 2;
y *= 2;
w *= 2;
h *= 2;
stride *= 2;
- vram_stride = 2048;
- vram_mask = 2048 * 1024 - 1;
+ vram_mask = 1024 * 1024 - 1;
}
fb_offs = y * vram_stride + x;
}
fb_offs = y * vram_stride + x;