diff options
| author | 2019-06-10 08:19:27 -0400 | |
|---|---|---|
| committer | 2019-07-05 15:49:20 -0400 | |
| commit | 0706d633bf7764455082cfdfdc35c14507cb6897 (patch) | |
| tree | 00f07387d43df3cf85d786af7d9a35233bf2c9d5 /src/core | |
| parent | Async GPU: do invalidate as synced operation (diff) | |
| download | yuzu-0706d633bf7764455082cfdfdc35c14507cb6897.tar.gz yuzu-0706d633bf7764455082cfdfdc35c14507cb6897.tar.xz yuzu-0706d633bf7764455082cfdfdc35c14507cb6897.zip | |
nv_host_ctrl: Make Sync GPU variant always return synced result.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp index 5b1253f6b..96310ed83 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp | |||
| @@ -60,6 +60,11 @@ u32 nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& | |||
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | auto& gpu = Core::System::GetInstance().GPU(); | 62 | auto& gpu = Core::System::GetInstance().GPU(); |
| 63 | // This is mostly to take into account unimplemented features. As synced | ||
| 64 | // gpu is always synced. | ||
| 65 | if (!gpu.IsAsync()) { | ||
| 66 | return NvResult::Success; | ||
| 67 | } | ||
| 63 | gpu.Guard(true); | 68 | gpu.Guard(true); |
| 64 | u32 current_syncpoint_value = gpu.GetSyncpointValue(params.syncpt_id); | 69 | u32 current_syncpoint_value = gpu.GetSyncpointValue(params.syncpt_id); |
| 65 | if (current_syncpoint_value >= params.threshold) { | 70 | if (current_syncpoint_value >= params.threshold) { |