X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_neon%2Fgpu.c;h=c275d8342f82e588d495327b7cb35f57a8206f06;hp=5bd415123b69da6d98c821ef69cd308794c85a5f;hb=a80ae4a0353fce94df700ec84222d3c56c3d813a;hpb=9394ada5d3140e3426592a25722f4fe7083cce9d diff --git a/plugins/gpu_neon/gpu.c b/plugins/gpu_neon/gpu.c index 5bd41512..c275d834 100644 --- a/plugins/gpu_neon/gpu.c +++ b/plugins/gpu_neon/gpu.c @@ -61,7 +61,7 @@ static noinline void decide_frameskip(void) { gpu.frameskip.frame_ready = !gpu.frameskip.active; - if (!gpu.frameskip.active && *gpu.frameskip.advice) + if (!gpu.frameskip.active && (*gpu.frameskip.advice || gpu.frameskip.set == 1)) gpu.frameskip.active = 1; else gpu.frameskip.active = 0; @@ -113,7 +113,7 @@ void GPUwriteStatus(uint32_t data) uint32_t cmd = data >> 24; if (cmd < ARRAY_SIZE(gpu.regs)) { - if (cmd != 0 && gpu.regs[cmd] == data) + if (cmd != 0 && cmd != 5 && gpu.regs[cmd] == data) return; gpu.regs[cmd] = data; } @@ -133,7 +133,7 @@ void GPUwriteStatus(uint32_t data) case 0x05: gpu.screen.x = data & 0x3ff; gpu.screen.y = (data >> 10) & 0x3ff; - if (gpu.frameskip.enabled) + if (gpu.frameskip.set) decide_frameskip(); break; case 0x06: @@ -328,11 +328,12 @@ static int check_cmd(uint32_t *data, int count) start_vram_transfer(data[pos + 1], data[pos + 2], cmd == 0xc0); pos += len; } - - if (cmd == -1) + else if (cmd == -1) break; } + if (gpu.frameskip.active) + renderer_sync_ecmds(gpu.ex_regs); gpu.state.fb_dirty |= vram_dirty; return count - pos; @@ -498,6 +499,7 @@ long GPUfreeze(uint32_t type, GPUFreeze_t *freeze) gpu.regs[i] ^= 1; // avoid reg change detection GPUwriteStatus((i << 24) | (gpu.regs[i] ^ 1)); } + renderer_sync_ecmds(gpu.ex_regs); break; }