From 21483f2d4c32ac5f73c219efcc69b732e6070d2e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 12 Feb 2013 07:42:07 -0800 Subject: [PATCH] Cut down on rescheduling in sceGeListEnqueue. Fixes ClaDun X2. --- Core/HLE/sceGe.cpp | 7 ++++++- Core/HLE/sceGe.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceGe.cpp b/Core/HLE/sceGe.cpp index a8de87bf08..16e790d342 100644 --- a/Core/HLE/sceGe.cpp +++ b/Core/HLE/sceGe.cpp @@ -112,8 +112,13 @@ void __GeShutdown() } -void __GeTriggerInterrupt(int listid, u32 pc, u32 subIntrBase, u16 subIntrToken) +void __GeTriggerInterrupt(int listid, u32 pc, int subIntrBase, u16 subIntrToken) { + // ClaDun X2 does not expect sceGeListEnqueue to reschedule (which it does not on the PSP.) + // Once PPSSPP's GPU is multithreaded, we can remove this check. + if (subIntrBase < 0) + return; + GeInterruptData intrdata; intrdata.listid = listid; intrdata.pc = pc; diff --git a/Core/HLE/sceGe.h b/Core/HLE/sceGe.h index c2621a492f..4e8f2ff48b 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, u32 subIntrBase, u16 subIntrToken); +void __GeTriggerInterrupt(int listid, u32 pc, int subIntrBase, u16 subIntrToken); bool __GeHasPendingInterrupt();