mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 16:02:26 +00:00
Merge branch 'martin/dreams' of github.com:0xcaff/shadPS4 into martin/dreams
This commit is contained in:
commit
12af52348e
@ -382,14 +382,16 @@ s32 PS4_SYSV_ABI sceGnmAddEqEvent(SceKernelEqueue eq, u64 id, void* udata) {
|
|||||||
eq->TriggerEvent(GnmEventIdents::GfxEop, SceKernelEvent::Filter::GraphicsCore, nullptr);
|
eq->TriggerEvent(GnmEventIdents::GfxEop, SceKernelEvent::Filter::GraphicsCore, nullptr);
|
||||||
},
|
},
|
||||||
eq);
|
eq);
|
||||||
} else if (id == (u64)Platform::InterruptId::Compute0RelMem) {
|
} else if (id >= 0 && id <= 6) {
|
||||||
|
auto interruptId = (Platform::InterruptId)id;
|
||||||
|
|
||||||
Platform::IrqC::Instance()->Register(
|
Platform::IrqC::Instance()->Register(
|
||||||
Platform::InterruptId::Compute0RelMem,
|
interruptId,
|
||||||
[=](Platform::InterruptId irq) {
|
[=](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
|
"An unexpected IRQ occured"); // We need to convert IRQ# to event id and do
|
||||||
// proper filtering in trigger function
|
// proper filtering in trigger function
|
||||||
eq->TriggerEvent(GnmEventIdents::Compute0RelMem, SceKernelEvent::Filter::GraphicsCore, nullptr);
|
eq->TriggerEvent((GnmEventIdents)id, SceKernelEvent::Filter::GraphicsCore, nullptr);
|
||||||
},
|
},
|
||||||
eq);
|
eq);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user