summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-10-05 23:54:33 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-10-16 00:23:23 +0200
commit198c6ad0d728447dc97e467c8fb08f0b54c8a742 (patch)
tree615ce23c8f97ab60b8a16fa2890a421959cc2427 /src/core/hle/service/nvdrv
parentNVHost_Ctrl: Force wait if the gpu falls behind too long. (diff)
downloadyuzu-198c6ad0d728447dc97e467c8fb08f0b54c8a742.tar
yuzu-198c6ad0d728447dc97e467c8fb08f0b54c8a742.tar.gz
yuzu-198c6ad0d728447dc97e467c8fb08f0b54c8a742.tar.bz2
yuzu-198c6ad0d728447dc97e467c8fb08f0b54c8a742.tar.lz
yuzu-198c6ad0d728447dc97e467c8fb08f0b54c8a742.tar.xz
yuzu-198c6ad0d728447dc97e467c8fb08f0b54c8a742.tar.zst
yuzu-198c6ad0d728447dc97e467c8fb08f0b54c8a742.zip
Diffstat (limited to 'src/core/hle/service/nvdrv')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp3
1 files changed, 2 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 8bbb2c06e..b59eae55c 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
@@ -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;