Suspend temporally

This commit is contained in:
FernandoS27 2021-10-05 23:54:33 +02:00 committed by Fernando Sahmkow
parent 7dca0bc11d
commit 198c6ad0d7
3 changed files with 31 additions and 1 deletions

View file

@ -150,8 +150,9 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector
params.value |= event_id;
event.event->GetWritableEvent().Clear();
if (events_interface.failed[event_id]) {
lock.unlock();
system.stallForGPU(true);
gpu.WaitFence(params.syncpt_id, target_value);
system.stallForGPU(false);
std::memcpy(output.data(), &params, sizeof(params));
events_interface.failed[event_id] = false;
return NvResult::Success;