return count - pos;
}
-static void flush_cmd_buffer(void)
+void flush_cmd_buffer(void)
{
int left = check_cmd(gpu.cmd_buffer, gpu.cmd_len);
if (left > 0)
extern struct psx_gpu gpu;
extern const unsigned char cmd_lengths[256];
+void flush_cmd_buffer(void);
void do_cmd_list(uint32_t *list, int count);
gpu.frameskip.frame_ready = 0;
}
+ if (gpu.cmd_len > 0)
+ flush_cmd_buffer();
renderer_flush_queues();
check_mode_change();
if (cbs->pl_vout_raw_flip)
void GPUupdateLace(void)
{
if (!gpu.status.blanking && gpu.state.fb_dirty) {
+ if (gpu.cmd_len > 0)
+ flush_cmd_buffer();
renderer_flush_queues();
blit();
gpu.state.fb_dirty = 0;