diff options
author | notaz | 2012-08-18 02:37:49 +0300 |
---|---|---|
committer | notaz | 2012-10-12 00:05:08 +0300 |
commit | e929dec505f8d3692248fe0d42c84a37c994ad39 (patch) | |
tree | b79f2f336a93618c2310bb8c70735a621aaa9957 /plugins/gpulib/vout_pl.c | |
parent | 99d767a0cbf8ee7406000cbac647d9681d885282 (diff) | |
download | pcsx_rearmed-e929dec505f8d3692248fe0d42c84a37c994ad39.tar.gz pcsx_rearmed-e929dec505f8d3692248fe0d42c84a37c994ad39.tar.bz2 pcsx_rearmed-e929dec505f8d3692248fe0d42c84a37c994ad39.zip |
psx_gpu: switch to 1024 width again.
Diffstat (limited to 'plugins/gpulib/vout_pl.c')
-rw-r--r-- | plugins/gpulib/vout_pl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/gpulib/vout_pl.c b/plugins/gpulib/vout_pl.c index 5131034..cbd8034 100644 --- 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; - if (dest == NULL) + if (dest == NULL || w == 0 || stride == 0) 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; - vram_stride = 2048; - vram_mask = 2048 * 1024 - 1; + vram_mask = 1024 * 1024 - 1; } fb_offs = y * vram_stride + x; |