mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 16:02:26 +00:00
add handling for compute memory release
This commit is contained in:
parent
e340583a7f
commit
0e17f74acd
@ -371,15 +371,28 @@ s32 PS4_SYSV_ABI sceGnmAddEqEvent(SceKernelEqueue eq, u64 id, void* udata) {
|
|||||||
kernel_event.event.udata = udata;
|
kernel_event.event.udata = udata;
|
||||||
eq->AddEvent(kernel_event);
|
eq->AddEvent(kernel_event);
|
||||||
|
|
||||||
Platform::IrqC::Instance()->Register(
|
if (id == 64) {
|
||||||
Platform::InterruptId::GfxEop,
|
Platform::IrqC::Instance()->Register(
|
||||||
[=](Platform::InterruptId irq) {
|
Platform::InterruptId::GfxEop,
|
||||||
ASSERT_MSG(irq == Platform::InterruptId::GfxEop,
|
[=](Platform::InterruptId irq) {
|
||||||
"An unexpected IRQ occured"); // We need to convert IRQ# to event id and do
|
ASSERT_MSG(irq == Platform::InterruptId::GfxEop,
|
||||||
// proper filtering in trigger function
|
"An unexpected IRQ occured"); // We need to convert IRQ# to event id and do
|
||||||
eq->TriggerEvent(GnmEventIdents::GfxEop, SceKernelEvent::Filter::GraphicsCore, nullptr);
|
// proper filtering in trigger function
|
||||||
},
|
eq->TriggerEvent(GnmEventIdents::GfxEop, SceKernelEvent::Filter::GraphicsCore, nullptr);
|
||||||
eq);
|
},
|
||||||
|
eq);
|
||||||
|
} else if (id == (u64)Platform::InterruptId::Compute0RelMem) {
|
||||||
|
Platform::IrqC::Instance()->Register(
|
||||||
|
Platform::InterruptId::Compute0RelMem,
|
||||||
|
[=](Platform::InterruptId irq) {
|
||||||
|
ASSERT_MSG(irq == Platform::InterruptId::Compute0RelMem,
|
||||||
|
"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);
|
||||||
|
}
|
||||||
|
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user