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
drc: allow to execute bios even in hle mode
[pcsx_rearmed.git]
/
plugins
/
dfxvideo
/
gpulib_if.c
diff --git
a/plugins/dfxvideo/gpulib_if.c
b/plugins/dfxvideo/gpulib_if.c
index
47ccced
..
ba7f16a
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
@@
-233,12
+237,8
@@
extern int32_t drawH;
PSXDisplay_t PSXDisplay;
unsigned char *psxVub;
PSXDisplay_t PSXDisplay;
unsigned char *psxVub;
-signed char *psxVsb;
unsigned short *psxVuw;
unsigned short *psxVuw_eom;
unsigned short *psxVuw;
unsigned short *psxVuw_eom;
-signed short *psxVsw;
-uint32_t *psxVul;
-int32_t *psxVsl;
long lGPUstatusRet;
uint32_t lGPUInfoVals[16];
long lGPUstatusRet;
uint32_t lGPUInfoVals[16];
@@
-266,13
+266,7
@@
long lLowerpart;
static void set_vram(void *vram)
{
psxVub=vram;
static void set_vram(void *vram)
{
psxVub=vram;
-
- psxVsb=(signed char *)psxVub; // different ways of accessing PSX VRAM
- psxVsw=(signed short *)psxVub;
- psxVsl=(int32_t *)psxVub;
psxVuw=(unsigned short *)psxVub;
psxVuw=(unsigned short *)psxVub;
- psxVul=(uint32_t *)psxVub;
-
psxVuw_eom=psxVuw+1024*512; // pre-calc of end of vram
}
psxVuw_eom=psxVuw+1024*512; // pre-calc of end of vram
}
@@
-305,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)
{
@@
-402,8
+400,16
@@
breakloop:
return list - list_start;
}
return list - list_start;
}
-void renderer_sync_ecmds(uint32_t *ecmds)
+void renderer_sync_ecmds(uint32_t *ecmds
_
)
{
{
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+ // the funcs below expect LE
+ uint32_t i, ecmds[8];
+ for (i = 1; i <= 6; i++)
+ ecmds[i] = HTOLE32(ecmds_[i]);
+#else
+ uint32_t *ecmds = ecmds_;
+#endif
cmdTexturePage((unsigned char *)&ecmds[1]);
cmdTextureWindow((unsigned char *)&ecmds[2]);
cmdDrawAreaStart((unsigned char *)&ecmds[3]);
cmdTexturePage((unsigned char *)&ecmds[1]);
cmdTextureWindow((unsigned char *)&ecmds[2]);
cmdDrawAreaStart((unsigned char *)&ecmds[3]);
@@
-412,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
)
{
}
{
}