NVDRV: Cleanup.

This commit is contained in:
Fernando Sahmkow
2021-11-01 15:25:06 +01:00
parent d30b885d71
commit a21b8824fb
4 changed files with 40 additions and 32 deletions

View File

@@ -125,8 +125,10 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector
}
}();
must_unmark_fail = true;
const auto check_failing = [&]() {
if (events_interface.fails[slot] > 1) {
if (events_interface.fails[slot] > 2) {
{
auto lk = system.StallProcesses();
gpu.WaitFence(fence_id, target_value);