Remove deprecated GPUCMD functions

This commit is contained in:
fincs 2017-08-29 00:39:56 +02:00
parent 967b0223ad
commit 0d950af680
2 changed files with 0 additions and 33 deletions

View File

@ -56,12 +56,6 @@ static inline void GPUCMD_GetBuffer(u32** addr, u32* size, u32* offset)
*/
void GPUCMD_AddRawCommands(const u32* cmd, u32 size);
/// Executes the GPU command buffer.
DEPRECATED void GPUCMD_Run(void);
/// Flushes linear memory and executes the GPU command buffer.
DEPRECATED void GPUCMD_FlushAndRun(void);
/**
* @brief Adds a GPU command to the current command buffer.
* @param header Header of the command.
@ -77,9 +71,6 @@ void GPUCMD_Add(u32 header, const u32* param, u32 paramlength);
*/
void GPUCMD_Split(u32** addr, u32* size);
/// Finalizes the GPU command buffer.
DEPRECATED void GPUCMD_Finalize(void);
/**
* @brief Converts a 32-bit float to a 16-bit float.
* @param f Float to convert.

View File

@ -22,21 +22,6 @@ void GPUCMD_AddRawCommands(const u32* cmd, u32 size)
gpuCmdBufOffset+=size;
}
void GPUCMD_Run(void)
{
GX_ProcessCommandList(gpuCmdBuf, gpuCmdBufOffset*4, GX_CMDLIST_FLUSH);
}
extern u32 __ctru_linear_heap;
extern u32 __ctru_linear_heap_size;
void GPUCMD_FlushAndRun(void)
{
//take advantage of GX_FlushCacheRegions to flush gsp heap
GX_FlushCacheRegions(gpuCmdBuf, gpuCmdBufOffset*4, (u32 *) __ctru_linear_heap, __ctru_linear_heap_size, NULL, 0);
GX_ProcessCommandList(gpuCmdBuf, gpuCmdBufOffset*4, 0x0);
}
void GPUCMD_Add(u32 header, const u32* param, u32 paramlength)
{
if(!paramlength)paramlength=1;
@ -74,15 +59,6 @@ void GPUCMD_Split(u32** addr, u32* size)
gpuCmdBufOffset = 0;
}
void GPUCMD_Finalize(void)
{
GPUCMD_AddMaskedWrite(GPUREG_PRIMITIVE_CONFIG, 0x8, 0x00000000);
GPUCMD_AddWrite(GPUREG_FRAMEBUFFER_FLUSH, 0x00000001);
GPUCMD_AddWrite(GPUREG_FRAMEBUFFER_INVALIDATE, 0x00000001);
GPUCMD_AddWrite(GPUREG_FINALIZE, 0x12345678);
GPUCMD_AddWrite(GPUREG_FINALIZE, 0x12345678); //not the cleanest way of guaranteeing 0x10-byte size but whatever good enough for now
}
static inline u32 floatrawbits(float f)
{
union { float f; u32 i; } s;