]> Chaos Git - corbenik/ctrulib.git/commitdiff
gsp: Renamed GSPGPU_submitGxCommand to GSPGPU_SubmitGxCommand.
authorplutoo <plutoo@univor.se>
Sun, 24 Aug 2014 20:33:57 +0000 (22:33 +0200)
committerplutoo <plutoo@univor.se>
Sun, 24 Aug 2014 20:33:57 +0000 (22:33 +0200)
libctru/source/services/gsp.c
libctru/source/services/gx.c

index fcdb2729ad33e4d91e6499cb5c604acd2968cdaf..59b0c186cc341fcf0d781c344ad54676c81a915f 100644 (file)
@@ -348,7 +348,7 @@ Result GSPGPU_TriggerCmdReqQueue(Handle* handle)
 //essentially : get commandIndex and totalCommands, calculate offset of new command, copy command and update totalCommands
 //use LDREX/STREX because this data may also be accessed by the GSP module and we don't want to break stuff
 //(mostly, we could overwrite the buffer header with wrong data and make the GSP module reexecute old commands)
-Result GSPGPU_submitGxCommand(u32* sharedGspCmdBuf, u32 gxCommand[0x8], Handle* handle)
+Result GSPGPU_SubmitGxCommand(u32* sharedGspCmdBuf, u32 gxCommand[0x8], Handle* handle)
 {
        if(!sharedGspCmdBuf || !gxCommand)return -1;
 
index 617bb8bd4d5f3814d79ffc798816e0de5a0be91f..6a4715576e79f125c4fde2c915a4edb555d625c1 100644 (file)
@@ -13,7 +13,7 @@ Result GX_RequestDma(u32* gxbuf, u32* src, u32* dst, u32 length)
        gxCommand[3]=length; //size
        gxCommand[4]=gxCommand[5]=gxCommand[6]=gxCommand[7]=0x0;
 
-       return GSPGPU_submitGxCommand(gxbuf, gxCommand, NULL);
+       return GSPGPU_SubmitGxCommand(gxbuf, gxCommand, NULL);
 }
 
 Result GX_SetCommandList_Last(u32* gxbuf, u32* buf0a, u32 buf0s, u8 flags)
@@ -26,7 +26,7 @@ Result GX_SetCommandList_Last(u32* gxbuf, u32* buf0a, u32 buf0s, u8 flags)
        gxCommand[4]=gxCommand[5]=gxCommand[6]=0x0;
        gxCommand[7]=(flags>>1)&1; //when non-zero, call svcFlushProcessDataCache() with the specified buffer
 
-       return GSPGPU_submitGxCommand(gxbuf, gxCommand, NULL);
+       return GSPGPU_SubmitGxCommand(gxbuf, gxCommand, NULL);
 }
 
 Result GX_SetMemoryFill(u32* gxbuf, u32* buf0a, u32 buf0v, u32* buf0e, u16 width0, u32* buf1a, u32 buf1v, u32* buf1e, u16 width1)
@@ -42,7 +42,7 @@ Result GX_SetMemoryFill(u32* gxbuf, u32* buf0a, u32 buf0v, u32* buf0e, u16 width
        gxCommand[6]=(u32)buf1e; //buf1 end addr
        gxCommand[7]=(width0)|(width1<<16);
 
-       return GSPGPU_submitGxCommand(gxbuf, gxCommand, NULL);
+       return GSPGPU_SubmitGxCommand(gxbuf, gxCommand, NULL);
 }
 
 // Flags, for applications this is 0x1001000 for the main screen, and 0x1000 for the sub screen.
@@ -57,7 +57,7 @@ Result GX_SetDisplayTransfer(u32* gxbuf, u32* inadr, u32 indim, u32* outadr, u32
        gxCommand[5]=flags;
        gxCommand[6]=gxCommand[7]=0x0;
 
-       return GSPGPU_submitGxCommand(gxbuf, gxCommand, NULL);
+       return GSPGPU_SubmitGxCommand(gxbuf, gxCommand, NULL);
 }
 
 Result GX_SetTextureCopy(u32* gxbuf, u32* inadr, u32 indim, u32* outadr, u32 outdim, u32 size, u32 flags)
@@ -72,7 +72,7 @@ Result GX_SetTextureCopy(u32* gxbuf, u32* inadr, u32 indim, u32* outadr, u32 out
        gxCommand[6]=flags;
        gxCommand[7]=0x0;
 
-       return GSPGPU_submitGxCommand(gxbuf, gxCommand, NULL);
+       return GSPGPU_SubmitGxCommand(gxbuf, gxCommand, NULL);
 }
 
 Result GX_SetCommandList_First(u32* gxbuf, u32* buf0a, u32 buf0s, u32* buf1a, u32 buf1s, u32* buf2a, u32 buf2s)
@@ -87,5 +87,5 @@ Result GX_SetCommandList_First(u32* gxbuf, u32* buf0a, u32 buf0s, u32* buf1a, u3
        gxCommand[6]=(u32)buf2s; //buf2 size
        gxCommand[7]=0x0;
 
-       return GSPGPU_submitGxCommand(gxbuf, gxCommand, NULL);
+       return GSPGPU_SubmitGxCommand(gxbuf, gxCommand, NULL);
 }