amdgpu: non-blocking submitDone

This commit is contained in:
psucien 2024-05-17 08:22:47 +02:00
parent 9df1a8d15b
commit dbdb3dc77e
2 changed files with 13 additions and 5 deletions

View file

@ -40,7 +40,7 @@ void Liverpool::Process(std::stop_token stoken) {
}
}
void Liverpool::Wait() {
void Liverpool::WaitGpuIdle() {
std::unique_lock lock{m_ring_access};
cv_complete.wait(lock, [this]() { return gfx_ring.empty(); });
}