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
Support compiling without posix_memalign() function
[pcsx_rearmed.git]
/
plugins
/
dfxvideo
/
gpulib_if.c
diff --git
a/plugins/dfxvideo/gpulib_if.c
b/plugins/dfxvideo/gpulib_if.c
index
25884b7
..
e883b86
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
+
#ifdef THREAD_RENDERING
#include "../gpulib/gpulib_thread_if.h"
#define do_cmd_list real_do_cmd_list
#ifdef THREAD_RENDERING
#include "../gpulib/gpulib_thread_if.h"
#define do_cmd_list real_do_cmd_list
@@
-249,12
+253,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];
@@
-270,6
+270,10
@@
unsigned short sSetMask = 0;
unsigned long lSetMask = 0;
long lLowerpart;
unsigned long lSetMask = 0;
long lLowerpart;
+#if defined(__GNUC__) && __GNUC__ >= 6
+#pragma GCC diagnostic ignored "-Wmisleading-indentation"
+#endif
+
#include "soft.c"
#include "prim.c"
#include "soft.c"
#include "prim.c"
@@
-278,13
+282,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
}
@@
-414,8
+412,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]);