X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_neon%2Fvout_fb.c;h=4d03859a265a39dedd599ecf85e406dba04cb71b;hp=5b54bd1c6033d3144a99a8d8aef97a4cabe1fdfe;hb=956f312925948e46da9c3596efadc4babc666a4d;hpb=5f26e4024284b562361e042597d7f2234d76db52 diff --git a/plugins/gpu_neon/vout_fb.c b/plugins/gpu_neon/vout_fb.c index 5b54bd1c..4d03859a 100644 --- a/plugins/gpu_neon/vout_fb.c +++ b/plugins/gpu_neon/vout_fb.c @@ -27,7 +27,8 @@ int vout_finish(void) static void blit(void) { - static uint32_t old_status, old_h; + static uint32_t old_status; + static int old_h; int x = gpu.screen.x & ~1; // alignment needed by blitter int y = gpu.screen.y; int w = gpu.screen.w; @@ -46,7 +47,7 @@ static void blit(void) screen_buf = cbs->pl_vout_set_mode(stride, h, gpu.status.rgb24 ? 24 : 16); } - dest = screen_buf; + dest = (uint8_t *)screen_buf; // only do centering, at least for now doffs = (stride - w) / 2 & ~1; @@ -88,12 +89,11 @@ void GPUupdateLace(void) return; if (gpu.frameskip.set) { - if (!gpu.frameskip.frame_ready && gpu.frameskip.skipped_blits < 9) { - gpu.frameskip.skipped_blits++; - return; + if (!gpu.frameskip.frame_ready) { + if (*gpu.state.frame_count - gpu.frameskip.last_flip_frame < 9) + return; } gpu.frameskip.frame_ready = 0; - gpu.frameskip.skipped_blits = 0; } renderer_flush_queues(); @@ -101,7 +101,7 @@ void GPUupdateLace(void) gpu.state.fb_dirty = 0; } -long GPUopen(void) +long GPUopen(void **unused) { gpu.frameskip.active = 0; gpu.frameskip.frame_ready = 1; @@ -124,6 +124,8 @@ void GPUrearmedCallbacks(const struct rearmed_cbs *cbs_) gpu.frameskip.advice = &cbs->fskip_advice; gpu.frameskip.active = 0; gpu.frameskip.frame_ready = 1; + gpu.state.hcnt = cbs->gpu_hcnt; + gpu.state.frame_count = cbs->gpu_frame_count; } // vim:shiftwidth=2:expandtab