Add GSPGPU_ResetGpuCore
This commit is contained in:
parent
51c0bdfc90
commit
b161b7e578
@ -144,9 +144,12 @@ Result GSPGPU_ReleaseRight(void);
|
||||
*/
|
||||
Result GSPGPU_ImportDisplayCaptureInfo(GSPGPU_CaptureInfo*captureinfo);
|
||||
|
||||
/// Sames the VRAM sys area.
|
||||
/// Saves the VRAM sys area.
|
||||
Result GSPGPU_SaveVramSysArea(void);
|
||||
|
||||
/// Resets the GPU
|
||||
Result GSPGPU_ResetGpuCore(void);
|
||||
|
||||
/// Restores the VRAM sys area.
|
||||
Result GSPGPU_RestoreVramSysArea(void);
|
||||
|
||||
@ -222,4 +225,4 @@ Result GSPGPU_TriggerCmdReqQueue(void);
|
||||
* @brief Sets 3D_LEDSTATE to the input state value.
|
||||
* @param disable False = 3D LED enable, true = 3D LED disable.
|
||||
*/
|
||||
Result GSPGPU_SetLedForceOff(bool disable);
|
||||
Result GSPGPU_SetLedForceOff(bool disable);
|
||||
|
@ -430,6 +430,17 @@ Result GSPGPU_RestoreVramSysArea(void)
|
||||
return cmdbuf[1];
|
||||
}
|
||||
|
||||
Result GSPGPU_ResetGpuCore(void)
|
||||
{
|
||||
u32* cmdbuf=getThreadCommandBuffer();
|
||||
cmdbuf[0]=IPC_MakeHeader(0x1B,0,0); // 0x001B0000
|
||||
|
||||
Result ret=0;
|
||||
if(R_FAILED(ret=svcSendSyncRequest(gspGpuHandle)))return ret;
|
||||
|
||||
return cmdbuf[1];
|
||||
}
|
||||
|
||||
Result GSPGPU_SetLedForceOff(bool disable)
|
||||
{
|
||||
u32 *cmdbuf = getThreadCommandBuffer();
|
||||
@ -441,4 +452,4 @@ Result GSPGPU_SetLedForceOff(bool disable)
|
||||
if (R_FAILED(ret = svcSendSyncRequest(gspGpuHandle))) return ret;
|
||||
|
||||
return cmdbuf[1];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user