diff options
| author | 2019-06-08 16:45:25 -0400 | |
|---|---|---|
| committer | 2019-07-05 15:49:18 -0400 | |
| commit | c13433aee4032ce654de1db31a93e4aed578596f (patch) | |
| tree | 3e967b11b147323ec848ec8073b944c1a8493af1 /src/video_core/gpu.cpp | |
| parent | nvhost_ctrl: Corrections to event handling (diff) | |
| download | yuzu-c13433aee4032ce654de1db31a93e4aed578596f.tar.gz yuzu-c13433aee4032ce654de1db31a93e4aed578596f.tar.xz yuzu-c13433aee4032ce654de1db31a93e4aed578596f.zip | |
Gpu: use an std mutex instead of a spin_lock to guard syncpoints
Diffstat (limited to 'src/video_core/gpu.cpp')
| -rw-r--r-- | src/video_core/gpu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index ee976f81f..c71f0f9bf 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp | |||
| @@ -69,7 +69,7 @@ const DmaPusher& GPU::DmaPusher() const { | |||
| 69 | 69 | ||
| 70 | void GPU::IncrementSyncPoint(const u32 syncpoint_id) { | 70 | void GPU::IncrementSyncPoint(const u32 syncpoint_id) { |
| 71 | syncpoints[syncpoint_id]++; | 71 | syncpoints[syncpoint_id]++; |
| 72 | sync_guard.lock(); | 72 | sync_mutex.lock(); |
| 73 | if (!events[syncpoint_id].empty()) { | 73 | if (!events[syncpoint_id].empty()) { |
| 74 | u32 value = syncpoints[syncpoint_id].load(); | 74 | u32 value = syncpoints[syncpoint_id].load(); |
| 75 | auto it = events[syncpoint_id].begin(); | 75 | auto it = events[syncpoint_id].begin(); |
| @@ -82,7 +82,7 @@ void GPU::IncrementSyncPoint(const u32 syncpoint_id) { | |||
| 82 | it++; | 82 | it++; |
| 83 | } | 83 | } |
| 84 | } | 84 | } |
| 85 | sync_guard.unlock(); | 85 | sync_mutex.unlock(); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | u32 GPU::GetSyncpointValue(const u32 syncpoint_id) const { | 88 | u32 GPU::GetSyncpointValue(const u32 syncpoint_id) const { |