diff --git a/Core/HLE/sceGe.cpp b/Core/HLE/sceGe.cpp index 978c656ebd..02bc6ce164 100644 --- a/Core/HLE/sceGe.cpp +++ b/Core/HLE/sceGe.cpp @@ -134,19 +134,20 @@ void __GeShutdown() } -void __GeTriggerInterrupt(int listid, u32 pc) +bool __GeTriggerInterrupt(int listid, u32 pc) { // ClaDun X2 does not expect sceGeListEnqueue to reschedule (which it does not on the PSP.) // Once PPSSPP's GPU uses cycles, we can remove this check. DisplayList* dl = gpu->getList(listid); if (dl != NULL && dl->subIntrBase < 0) - return; + return false; GeInterruptData intrdata; intrdata.listid = listid; intrdata.pc = pc; ge_pending_cb.push_back(intrdata); __TriggerInterrupt(PSP_INTR_HLE, PSP_GE_INTR, PSP_INTR_SUB_NONE); + return true; } bool __GeHasPendingInterrupt() diff --git a/Core/HLE/sceGe.h b/Core/HLE/sceGe.h index ce6661fe28..7c82a98d5f 100644 --- a/Core/HLE/sceGe.h +++ b/Core/HLE/sceGe.h @@ -39,7 +39,7 @@ void Register_sceGe_user(); void __GeInit(); void __GeDoState(PointerWrap &p); void __GeShutdown(); -void __GeTriggerInterrupt(int listid, u32 pc); +bool __GeTriggerInterrupt(int listid, u32 pc); bool __GeHasPendingInterrupt(); diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index 44122959c0..073b93a066 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -572,8 +572,8 @@ void GPUCommon::ExecuteOp(u32 op, u32 diff) { break; } if (interruptsEnabled_) { - gpuState = GPUSTATE_INTERRUPT; - __GeTriggerInterrupt(currentList->id, currentList->pc); + if (__GeTriggerInterrupt(currentList->id, currentList->pc)) + gpuState = GPUSTATE_INTERRUPT; } } break;