notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spu: make "simple" interpolation even more simple
[pcsx_rearmed.git]
/
plugins
/
gpu_neon
/
gpu.c
diff --git
a/plugins/gpu_neon/gpu.c
b/plugins/gpu_neon/gpu.c
index
5bd4151
..
c275d83
100644
(file)
--- 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;
{
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;
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)) {
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;
}
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;
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:
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;
}
start_vram_transfer(data[pos + 1], data[pos + 2], cmd == 0xc0);
pos += len;
}
-
- if (cmd == -1)
+ else if (cmd == -1)
break;
}
break;
}
+ if (gpu.frameskip.active)
+ renderer_sync_ecmds(gpu.ex_regs);
gpu.state.fb_dirty |= vram_dirty;
return count - pos;
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));
}
gpu.regs[i] ^= 1; // avoid reg change detection
GPUwriteStatus((i << 24) | (gpu.regs[i] ^ 1));
}
+ renderer_sync_ecmds(gpu.ex_regs);
break;
}
break;
}