mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
fix queue setup
This commit is contained in:
parent
68e2ca15b4
commit
3277daa7a9
1 changed files with 6 additions and 4 deletions
|
@ -382,14 +382,16 @@ s32 PS4_SYSV_ABI sceGnmAddEqEvent(SceKernelEqueue eq, u64 id, void* udata) {
|
|||
eq->TriggerEvent(GnmEventIdents::GfxEop, SceKernelEvent::Filter::GraphicsCore, nullptr);
|
||||
},
|
||||
eq);
|
||||
} else if (id == (u64)Platform::InterruptId::Compute0RelMem) {
|
||||
} else if (id >= 0 && id <= 6) {
|
||||
auto interruptId = (Platform::InterruptId)id;
|
||||
|
||||
Platform::IrqC::Instance()->Register(
|
||||
Platform::InterruptId::Compute0RelMem,
|
||||
interruptId,
|
||||
[=](Platform::InterruptId irq) {
|
||||
ASSERT_MSG(irq == Platform::InterruptId::Compute0RelMem,
|
||||
ASSERT_MSG(irq == interruptId,
|
||||
"An unexpected IRQ occured"); // We need to convert IRQ# to event id and do
|
||||
// proper filtering in trigger function
|
||||
eq->TriggerEvent(GnmEventIdents::Compute0RelMem, SceKernelEvent::Filter::GraphicsCore, nullptr);
|
||||
eq->TriggerEvent((GnmEventIdents)id, SceKernelEvent::Filter::GraphicsCore, nullptr);
|
||||
},
|
||||
eq);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue