mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-20 10:24:58 +00:00
gnmdriver, amdgpu: added gpu idle IRQ; submission lock logic improved
This commit is contained in:
parent
bf74888be4
commit
986ed0662c
4 changed files with 23 additions and 35 deletions
|
@ -66,21 +66,10 @@ void Liverpool::Process(std::stop_token stoken) {
|
|||
}
|
||||
}
|
||||
|
||||
if (submit_done) {
|
||||
std::scoped_lock lk{submit_mutex};
|
||||
submit_cv.notify_all();
|
||||
submit_done = false;
|
||||
}
|
||||
Platform::IrqC::Instance()->Signal(Platform::InterruptId::GpuIdle);
|
||||
}
|
||||
}
|
||||
|
||||
void Liverpool::WaitGpuIdle() {
|
||||
RENDERER_TRACE;
|
||||
|
||||
std::unique_lock lk{submit_mutex};
|
||||
submit_cv.wait(lk, [this] { return num_submits == 0; });
|
||||
}
|
||||
|
||||
Liverpool::Task Liverpool::ProcessCeUpdate(std::span<const u32> ccb) {
|
||||
TracyFiberEnter(ccb_task_name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue