diff options
author | hizzlekizzle | 2019-03-12 10:25:21 -0500 |
---|---|---|
committer | GitHub | 2019-03-12 10:25:21 -0500 |
commit | 5a49b8a2620bfdfaaf59ae25aa51bde44610371b (patch) | |
tree | 3a3b71888d742d9ada0f2dd1178d342e52730a2e | |
parent | 186cd6a4469c82d5e7be0cf919eec97c4f304432 (diff) | |
parent | 1f056562e2bf8a37995029f7166fb8b1bbd1f0cc (diff) | |
download | pcsx_rearmed-5a49b8a2620bfdfaaf59ae25aa51bde44610371b.tar.gz pcsx_rearmed-5a49b8a2620bfdfaaf59ae25aa51bde44610371b.tar.bz2 pcsx_rearmed-5a49b8a2620bfdfaaf59ae25aa51bde44610371b.zip |
Merge pull request #243 from retro-wertz/unai_fixes
gpu_unai buildfix and re-enable on 3ds
-rw-r--r-- | Makefile.libretro | 2 | ||||
-rw-r--r-- | jni/Android.mk | 2 | ||||
-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.cpp | 8 |
4 files changed, 7 insertions, 6 deletions
diff --git a/Makefile.libretro b/Makefile.libretro index 8899ed7..2d88b70 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -177,7 +177,7 @@ else ifeq ($(platform), ctr) CFLAGS += -Werror=implicit-function-declaration # CFLAGS += -DPCSX -# BUILTIN_GPU = unai + BUILTIN_GPU = unai USE_DYNAREC = 1 DRC_CACHE_BASE = 0 ARCH = arm diff --git a/jni/Android.mk b/jni/Android.mk index 1b24c0b..756f54c 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -91,7 +91,7 @@ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) $(FRONTEND_DIR)/cspace_neon.S SOURCES_C += $(NEON_DIR)/psx_gpu_if.c else ifeq ($(TARGET_ARCH_ABI),armeabi) - SOURCES_ASM += $(UNAI_DIR)/gpu_arm.s \ + SOURCES_ASM += $(UNAI_DIR)/gpu_arm.S \ $(FRONTEND_DIR)/cspace_arm.S SOURCES_C += $(UNAI_DIR)/gpulib_if.cpp else 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; } |