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: keep generating irqs while they are pending
[pcsx_rearmed.git]
/
plugins
/
gpu_neon
/
psx_gpu_if.c
diff --git
a/plugins/gpu_neon/psx_gpu_if.c
b/plugins/gpu_neon/psx_gpu_if.c
index
470f68e
..
ff31c27
100644
(file)
--- a/
plugins/gpu_neon/psx_gpu_if.c
+++ b/
plugins/gpu_neon/psx_gpu_if.c
@@
-10,37
+10,45
@@
#include <stdio.h>
#include <stdio.h>
-#if 1
+extern const unsigned char cmd_lengths[256];
+#define command_lengths cmd_lengths
+
+static unsigned int *ex_regs;
+
+#define PCSX
+#define SET_Ex(r, v) \
+ ex_regs[r] = v
+
#include "psx_gpu/psx_gpu.c"
#include "psx_gpu/psx_gpu.c"
-#else
-#define printf xprintf
-#define xprintf(...)
-#include "psx_gpu/psx_gpu_standard.c"
-#endif
#include "psx_gpu/psx_gpu_parse.c"
#include "psx_gpu/psx_gpu_parse.c"
-#include "gpu.h"
+#include "
../gpulib/
gpu.h"
static psx_gpu_struct egpu __attribute__((aligned(256)));
static psx_gpu_struct egpu __attribute__((aligned(256)));
-
void do_cmd_list(uint32_t *list, int count
)
+
int do_cmd_list(uint32_t *list, int count, int *last_cmd
)
{
{
- gpu_parse(&egpu, list, count * 4);
+ int ret = gpu_parse(&egpu, list, count * 4, (u32 *)last_cmd);
+
+ ex_regs[1] &= ~0x1ff;
+ ex_regs[1] |= egpu.texture_settings & 0x1ff;
+ return ret;
}
int renderer_init(void)
{
initialize_psx_gpu(&egpu, gpu.vram);
}
int renderer_init(void)
{
initialize_psx_gpu(&egpu, gpu.vram);
+ ex_regs = gpu.ex_regs;
return 0;
}
void renderer_sync_ecmds(uint32_t *ecmds)
{
return 0;
}
void renderer_sync_ecmds(uint32_t *ecmds)
{
- gpu_parse(&egpu, ecmds + 1, 6 * 4);
+ gpu_parse(&egpu, ecmds + 1, 6 * 4
, NULL
);
}
}
-void renderer_
invali
date_caches(int x, int y, int w, int h)
+void renderer_
up
date_caches(int x, int y, int w, int h)
{
{
-
invali
date_texture_cache_region(&egpu, x, y, x + w - 1, y + h - 1);
+
up
date_texture_cache_region(&egpu, x, y, x + w - 1, y + h - 1);
}
void renderer_flush_queues(void)
}
void renderer_flush_queues(void)