mirror of
https://github.com/emu-russia/pureikyubu.git
synced 2025-04-02 10:42:15 -04:00
22 lines
328 B
Text
22 lines
328 B
Text
// from GXInit
|
|
|
|
BOOL IsWriteGatherBufferEmpty(void)
|
|
{
|
|
return WPAR[BNE];
|
|
}
|
|
|
|
void EnableWriteGatherPipe(void)
|
|
{
|
|
u32 hid2 = PPCMfhid2();
|
|
PPCMtwpar(0x0C080000);
|
|
PPCMthid2(hid2 | HID2_WPE);
|
|
}
|
|
|
|
void DisableWriteGatherPipe(void)
|
|
{
|
|
u32 hid2 = PPCMfhid2();
|
|
PPCMthid2(hid2 & ~HID2_WPE);
|
|
}
|
|
|
|
|
|
|