aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorretro-wertz2019-03-18 17:00:46 +0800
committerretro-wertz2019-03-18 17:00:46 +0800
commit5f315a8f633819a318d45c1986412ada64d05652 (patch)
tree1783328ee070074e7414feba95e01a77fd46609b /plugins
parent3becfa56ca741815455593c515c623ad51e29e59 (diff)
downloadpcsx_rearmed-5f315a8f633819a318d45c1986412ada64d05652.tar.gz
pcsx_rearmed-5f315a8f633819a318d45c1986412ada64d05652.tar.bz2
pcsx_rearmed-5f315a8f633819a318d45c1986412ada64d05652.zip
GPU unai update
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpu_unai/gpulib_if.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/gpu_unai/gpulib_if.cpp b/plugins/gpu_unai/gpulib_if.cpp
index 087bb42..e9a199c 100644
--- a/plugins/gpu_unai/gpulib_if.cpp
+++ b/plugins/gpu_unai/gpulib_if.cpp
@@ -165,11 +165,11 @@ void renderer_notify_res_change(void)
extern const unsigned char cmd_lengths[256];
-int do_cmd_list(unsigned int *list, int list_len, int *last_cmd)
+int do_cmd_list(u32 *list, int list_len, int *last_cmd)
{
- unsigned int cmd = 0, len, i;
- unsigned int *list_start = list;
- unsigned int *list_end = list + list_len;
+ u32 cmd = 0, len, i;
+ u32 *list_start = list;
+ u32 *list_end = list + list_len;
linesInterlace = force_interlace;
#ifdef HAVE_PRE_ARMV7 /* XXX */
@@ -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 = (u32*)&(list[2]);
+ u32 *list_position = &(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 >= (u32*)list_end) {
+ if(list_position >= 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 = (u32*)&(list[2]);
+ u32 *list_position = &(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 >= (u32*)list_end) {
+ if(list_position >= list_end) {
cmd = -1;
goto breakloop;
}