From dc16d99b5307662b84aea3706236383c1391ed6b Mon Sep 17 00:00:00 2001 From: plutoo Date: Sun, 24 Aug 2014 22:33:57 +0200 Subject: [PATCH] gsp: Renamed GSPGPU_submitGxCommand to GSPGPU_SubmitGxCommand. --- libctru/source/services/gsp.c | 2 +- libctru/source/services/gx.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libctru/source/services/gsp.c b/libctru/source/services/gsp.c index fcdb272..59b0c18 100644 --- a/libctru/source/services/gsp.c +++ b/libctru/source/services/gsp.c @@ -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; diff --git a/libctru/source/services/gx.c b/libctru/source/services/gx.c index 617bb8b..6a47155 100644 --- a/libctru/source/services/gx.c +++ b/libctru/source/services/gx.c @@ -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); }