diff options
| author | 2021-11-16 00:01:40 +0100 | |
|---|---|---|
| committer | 2022-10-06 21:00:52 +0200 | |
| commit | 6fc4012396e98a1a6ac455791b314d2280a12a51 (patch) | |
| tree | e033b398a8cf99f3bd5f9810970872ee40a35a82 /src/core | |
| parent | NVDRV: Remake ASGPU (diff) | |
| download | yuzu-6fc4012396e98a1a6ac455791b314d2280a12a51.tar.gz yuzu-6fc4012396e98a1a6ac455791b314d2280a12a51.tar.xz yuzu-6fc4012396e98a1a6ac455791b314d2280a12a51.zip | |
VideoCore: Extra Fixes.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp index a859a7abd..54074af75 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp | |||
| @@ -143,7 +143,7 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector | |||
| 143 | } | 143 | } |
| 144 | }(); | 144 | }(); |
| 145 | 145 | ||
| 146 | must_unmark_fail = true; | 146 | must_unmark_fail = false; |
| 147 | 147 | ||
| 148 | const auto check_failing = [&]() { | 148 | const auto check_failing = [&]() { |
| 149 | if (events[slot].fails > 2) { | 149 | if (events[slot].fails > 2) { |
| @@ -164,6 +164,7 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector | |||
| 164 | 164 | ||
| 165 | if (params.timeout == 0) { | 165 | if (params.timeout == 0) { |
| 166 | if (check_failing()) { | 166 | if (check_failing()) { |
| 167 | events[slot].fails = 0; | ||
| 167 | return NvResult::Success; | 168 | return NvResult::Success; |
| 168 | } | 169 | } |
| 169 | return NvResult::Timeout; | 170 | return NvResult::Timeout; |
| @@ -180,6 +181,7 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector | |||
| 180 | } | 181 | } |
| 181 | 182 | ||
| 182 | if (check_failing()) { | 183 | if (check_failing()) { |
| 184 | event.fails = 0; | ||
| 183 | return NvResult::Success; | 185 | return NvResult::Success; |
| 184 | } | 186 | } |
| 185 | 187 | ||