VideoCore: Extra Fixes.

This commit is contained in:
Fernando Sahmkow 2021-11-16 00:01:40 +01:00
parent feb49c822d
commit 6fc4012396
3 changed files with 5 additions and 3 deletions

View file

@ -143,7 +143,7 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector
}
}();
must_unmark_fail = true;
must_unmark_fail = false;
const auto check_failing = [&]() {
if (events[slot].fails > 2) {
@ -164,6 +164,7 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector
if (params.timeout == 0) {
if (check_failing()) {
events[slot].fails = 0;
return NvResult::Success;
}
return NvResult::Timeout;
@ -180,6 +181,7 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector
}
if (check_failing()) {
event.fails = 0;
return NvResult::Success;
}