aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorretro-wertz2019-03-12 14:18:37 +0800
committerretro-wertz2019-03-12 14:18:37 +0800
commitb26afb99fb1a118d344b6a42b5d40c3d78b5b913 (patch)
tree367c432db0e85b2b1b6254b4f3d87b0b908d771f /plugins
parent186cd6a4469c82d5e7be0cf919eec97c4f304432 (diff)
downloadpcsx_rearmed-b26afb99fb1a118d344b6a42b5d40c3d78b5b913.tar.gz
pcsx_rearmed-b26afb99fb1a118d344b6a42b5d40c3d78b5b913.tar.bz2
pcsx_rearmed-b26afb99fb1a118d344b6a42b5d40c3d78b5b913.zip
gpu_unai: Buildfix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpu_unai/gpu_arm.S (renamed from plugins/gpu_unai/gpu_arm.s)1
-rw-r--r--plugins/gpu_unai/gpulib_if.cpp8
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/gpu_unai/gpu_arm.s b/plugins/gpu_unai/gpu_arm.S
index 8fa44a7..ec87f21 100644
--- a/plugins/gpu_unai/gpu_arm.s
+++ b/plugins/gpu_unai/gpu_arm.S
@@ -5,6 +5,7 @@
* See the COPYING file in the top-level directory.
*/
+#include "arm_features.h"
.text
.align 2
diff --git a/plugins/gpu_unai/gpulib_if.cpp b/plugins/gpu_unai/gpulib_if.cpp
index 2dedbf8..087bb42 100644
--- a/plugins/gpu_unai/gpulib_if.cpp
+++ b/plugins/gpu_unai/gpulib_if.cpp
@@ -297,7 +297,7 @@ int do_cmd_list(unsigned int *list, int list_len, int *last_cmd)
case 0x48 ... 0x4F:
{
u32 num_vertexes = 1;
- u32 *list_position = &(list[2]);
+ u32 *list_position = (u32*)&(list[2]);
gpuDrawLF(gpuPixelDrivers [ (Blending_Mode | Masking | Blending | (PixelMSB>>3)) >> 1]);
@@ -308,7 +308,7 @@ int do_cmd_list(unsigned int *list, int list_len, int *last_cmd)
gpuDrawLF(gpuPixelDrivers [ (Blending_Mode | Masking | Blending | (PixelMSB>>3)) >> 1]);
num_vertexes++;
- if(list_position >= list_end) {
+ if(list_position >= (u32*)list_end) {
cmd = -1;
goto breakloop;
}
@@ -330,7 +330,7 @@ int do_cmd_list(unsigned int *list, int list_len, int *last_cmd)
case 0x58 ... 0x5F:
{
u32 num_vertexes = 1;
- u32 *list_position = &(list[2]);
+ u32 *list_position = (u32*)&(list[2]);
gpuDrawLG(gpuPixelDrivers [ (Blending_Mode | Masking | Blending | (PixelMSB>>3)) >> 1]);
@@ -343,7 +343,7 @@ int do_cmd_list(unsigned int *list, int list_len, int *last_cmd)
gpuDrawLG(gpuPixelDrivers [ (Blending_Mode | Masking | Blending | (PixelMSB>>3)) >> 1]);
num_vertexes++;
- if(list_position >= list_end) {
+ if(list_position >= (u32*)list_end) {
cmd = -1;
goto breakloop;
}