aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authornotaz2015-02-05 02:37:56 +0200
committernotaz2015-02-05 02:37:56 +0200
commitef0adba4796f95e60ac83bc4d5eabff809311b31 (patch)
tree32e038ae523cf07e4749898524a0c46dcc52d1d1 /plugins
parentfc4803bdc2c9840a007c60e422fb0531107b80f2 (diff)
downloadpcsx_rearmed-ef0adba4796f95e60ac83bc4d5eabff809311b31.tar.gz
pcsx_rearmed-ef0adba4796f95e60ac83bc4d5eabff809311b31.tar.bz2
pcsx_rearmed-ef0adba4796f95e60ac83bc4d5eabff809311b31.zip
gpulib: remove unneeded hack
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpulib/gpu.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c
index 0e6fe63..125bd89 100644
--- a/plugins/gpulib/gpu.c
+++ b/plugins/gpulib/gpu.c
@@ -21,7 +21,6 @@
#define unlikely(x)
#define preload(...)
#define noinline
-#error huh
#endif
#define gpu_log(fmt, ...) \
@@ -522,7 +521,6 @@ void GPUwriteData(uint32_t data)
long GPUdmaChain(uint32_t *rambase, uint32_t start_addr)
{
uint32_t addr, *list, ld_addr = 0;
- uint32_t *llist_entry = NULL;
int len, left, count;
long cpu_cycles = 0;
@@ -531,15 +529,6 @@ long GPUdmaChain(uint32_t *rambase, uint32_t start_addr)
if (unlikely(gpu.cmd_len > 0))
flush_cmd_buffer();
- // ff7 sends it's main list twice, detect this
- if (*gpu.state.frame_count == gpu.state.last_list.frame &&
- *gpu.state.hcnt - gpu.state.last_list.hcnt <= 1 &&
- gpu.state.last_list.cycles > 2048)
- {
- llist_entry = rambase + (gpu.state.last_list.addr & 0x1fffff) / 4;
- *llist_entry |= 0x800000;
- }
-
log_io("gpu_dma_chain\n");
addr = start_addr & 0xffffff;
for (count = 0; (addr & 0x800000) == 0; count++)
@@ -586,9 +575,6 @@ long GPUdmaChain(uint32_t *rambase, uint32_t start_addr)
}
}
- if (llist_entry)
- *llist_entry &= ~0x800000;
-
gpu.state.last_list.frame = *gpu.state.frame_count;
gpu.state.last_list.hcnt = *gpu.state.hcnt;
gpu.state.last_list.cycles = cpu_cycles;