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
Fix region core option. Fixed value to match setting and removed harcoded config...
[pcsx_rearmed.git]
/
plugins
/
dfxvideo
/
gpulib_if.c
diff --git
a/plugins/dfxvideo/gpulib_if.c
b/plugins/dfxvideo/gpulib_if.c
index
d98520c
..
bb3ad56
100644
(file)
--- a/
plugins/dfxvideo/gpulib_if.c
+++ b/
plugins/dfxvideo/gpulib_if.c
@@
-309,11
+309,11
@@
void renderer_notify_res_change(void)
extern const unsigned char cmd_lengths[256];
extern const unsigned char cmd_lengths[256];
-int do_cmd_list(u
nsigned in
t *list, int list_len, int *last_cmd)
+int do_cmd_list(u
int32_
t *list, int list_len, int *last_cmd)
{
unsigned int cmd = 0, len;
{
unsigned int cmd = 0, len;
- u
nsigned in
t *list_start = list;
- u
nsigned in
t *list_end = list + list_len;
+ u
int32_
t *list_start = list;
+ u
int32_
t *list_end = list + list_len;
for (; list < list_end; list += 1 + len)
{
for (; list < list_end; list += 1 + len)
{
@@
-342,7
+342,12
@@
int do_cmd_list(unsigned int *list, int list_len, int *last_cmd)
while(1)
{
while(1)
{
- if((*list_position & 0xf000f000) == 0x50005000 || list_position >= list_end)
+ if(list_position >= list_end) {
+ cmd = -1;
+ goto breakloop;
+ }
+
+ if((*list_position & 0xf000f000) == 0x50005000)
break;
list_position++;
break;
list_position++;
@@
-360,7
+365,12
@@
int do_cmd_list(unsigned int *list, int list_len, int *last_cmd)
while(1)
{
while(1)
{
- if((*list_position & 0xf000f000) == 0x50005000 || list_position >= list_end)
+ if(list_position >= list_end) {
+ cmd = -1;
+ goto breakloop;
+ }
+
+ if((*list_position & 0xf000f000) == 0x50005000)
break;
list_position += 2;
break;
list_position += 2;
@@
-386,6
+396,7
@@
int do_cmd_list(unsigned int *list, int list_len, int *last_cmd)
}
}
}
}
+breakloop:
gpu.ex_regs[1] &= ~0x1ff;
gpu.ex_regs[1] |= lGPUstatusRet & 0x1ff;
gpu.ex_regs[1] &= ~0x1ff;
gpu.ex_regs[1] |= lGPUstatusRet & 0x1ff;