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
gpulib: handle vram copy in gpulib
[pcsx_rearmed.git]
/
plugins
/
dfxvideo
/
gpulib_if.c
diff --git
a/plugins/dfxvideo/gpulib_if.c
b/plugins/dfxvideo/gpulib_if.c
index
86cfd26
..
978e7d8
100644
(file)
--- a/
plugins/dfxvideo/gpulib_if.c
+++ b/
plugins/dfxvideo/gpulib_if.c
@@
-18,6
+18,10
@@
#include "../gpulib/gpu.h"
#include "../../include/arm_features.h"
#include "../gpulib/gpu.h"
#include "../../include/arm_features.h"
+#if defined(__GNUC__) && (__GNUC__ >= 6 || (defined(__clang_major__) && __clang_major__ >= 10))
+#pragma GCC diagnostic ignored "-Wmisleading-indentation"
+#endif
+
#define u32 uint32_t
#define INFO_TW 0
#define u32 uint32_t
#define INFO_TW 0
@@
-295,13
+299,17
@@
void renderer_notify_res_change(void)
{
}
{
}
+void renderer_notify_scanout_x_change(int x, int w)
+{
+}
+
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)
{
@@
-313,7
+321,7
@@
int do_cmd_list(unsigned int *list, int list_len, int *last_cmd)
}
#ifndef TEST
}
#ifndef TEST
- if (
cmd == 0xa0 || cmd == 0xc
0)
+ if (
0x80 <= cmd && cmd < 0xe
0)
break; // image i/o, forward to upper layer
else if ((cmd & 0xf8) == 0xe0)
gpu.ex_regs[cmd & 7] = GETLE32(list);
break; // image i/o, forward to upper layer
else if ((cmd & 0xf8) == 0xe0)
gpu.ex_regs[cmd & 7] = GETLE32(list);
@@
-410,7
+418,7
@@
void renderer_sync_ecmds(uint32_t *ecmds_)
cmdSTP((unsigned char *)&ecmds[6]);
}
cmdSTP((unsigned char *)&ecmds[6]);
}
-void renderer_update_caches(int x, int y, int w, int h)
+void renderer_update_caches(int x, int y, int w, int h
, int state_changed
)
{
}
{
}