Delete long-since obsolete flush functions
This commit is contained in:
parent
f2850e3bfe
commit
3d566ac8da
@ -11,7 +11,6 @@ enum
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool C3D_Init(size_t cmdBufSize);
|
bool C3D_Init(size_t cmdBufSize);
|
||||||
void C3D_FlushAsync(void);
|
|
||||||
void C3D_Fini(void);
|
void C3D_Fini(void);
|
||||||
|
|
||||||
float C3D_GetCmdBufUsage(void);
|
float C3D_GetCmdBufUsage(void);
|
||||||
@ -34,23 +33,6 @@ static inline void C3D_ImmDrawRestartPrim(void)
|
|||||||
GPUCMD_AddWrite(GPUREG_RESTART_PRIMITIVE, 1);
|
GPUCMD_AddWrite(GPUREG_RESTART_PRIMITIVE, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void C3D_FlushAwait(void)
|
|
||||||
{
|
|
||||||
gspWaitForP3D();
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void C3D_Flush(void)
|
|
||||||
{
|
|
||||||
C3D_FlushAsync();
|
|
||||||
C3D_FlushAwait();
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void C3D_VideoSync(void)
|
|
||||||
{
|
|
||||||
gspWaitForEvent(GSPGPU_EVENT_VBlank0, false);
|
|
||||||
gfxSwapBuffersGpu();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fixed vertex attributes
|
// Fixed vertex attributes
|
||||||
C3D_FVec* C3D_FixedAttribGetWritePtr(int id);
|
C3D_FVec* C3D_FixedAttribGetWritePtr(int id);
|
||||||
|
|
||||||
|
@ -336,25 +336,6 @@ bool C3Di_SplitFrame(u32** pBuf, u32* pSize)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void C3D_FlushAsync(void)
|
|
||||||
{
|
|
||||||
C3D_Context* ctx = C3Di_GetContext();
|
|
||||||
|
|
||||||
if (!(ctx->flags & C3DiF_Active))
|
|
||||||
return;
|
|
||||||
|
|
||||||
u32* cmdBuf;
|
|
||||||
u32 cmdBufSize;
|
|
||||||
C3Di_SplitFrame(&cmdBuf, &cmdBufSize);
|
|
||||||
GPUCMD_SetBuffer(ctx->cmdBuf, ctx->cmdBufSize, 0);
|
|
||||||
|
|
||||||
//take advantage of GX_FlushCacheRegions to flush gsp heap
|
|
||||||
extern u32 __ctru_linear_heap;
|
|
||||||
extern u32 __ctru_linear_heap_size;
|
|
||||||
GX_FlushCacheRegions(cmdBuf, cmdBufSize*4, (u32 *) __ctru_linear_heap, __ctru_linear_heap_size, NULL, 0);
|
|
||||||
GX_ProcessCommandList(cmdBuf, cmdBufSize*4, 0x0);
|
|
||||||
}
|
|
||||||
|
|
||||||
float C3D_GetCmdBufUsage(void)
|
float C3D_GetCmdBufUsage(void)
|
||||||
{
|
{
|
||||||
return C3Di_GetContext()->cmdBufUsage;
|
return C3Di_GetContext()->cmdBufUsage;
|
||||||
|
Loading…
Reference in New Issue
Block a user