X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fgpu_neon%2Fpsx_gpu_if.c;h=429b327bfb1318e16e4532ef67b0eda8e0c57af4;hb=6f53dd114a1690ca8018407ad6ba0680d30ce0d7;hp=a1fbb91049b8434070b224c6b89bdd7ef13b86e2;hpb=9a864a8f77d7de8e787eb8a1d594d89daa7daca1;p=pcsx_rearmed.git diff --git a/plugins/gpu_neon/psx_gpu_if.c b/plugins/gpu_neon/psx_gpu_if.c index a1fbb910..429b327b 100644 --- a/plugins/gpu_neon/psx_gpu_if.c +++ b/plugins/gpu_neon/psx_gpu_if.c @@ -142,6 +142,9 @@ sync_enhancement_buffers(int x, int y, int w, int h) x2 = min(right, s->x + s_w); y1 = max(y, s->y); y2 = min(bottom, s->y + s_h); + // 16-byte align for the asm version + x2 += x1 & 7; + x1 &= ~7; scale2x_tiles8(dst + y1 * 1024*2 + x1 * 2, src + y1 * 1024 + x1, (x2 - x1 + 7) / 8u, y2 - y1); } @@ -160,6 +163,8 @@ void renderer_update_caches(int x, int y, int w, int h, int state_changed) if (state_changed) { memset(egpu.enhancement_scanouts, 0, sizeof(egpu.enhancement_scanouts)); egpu.enhancement_scanout_eselect = 0; + update_enhancement_buf_scanouts(&egpu, + gpu.screen.src_x, gpu.screen.src_y, gpu.screen.hres, gpu.screen.vres); return; } sync_enhancement_buffers(x, y, w, h);