diff options
| author | 2019-06-07 22:13:40 -0400 | |
|---|---|---|
| committer | 2019-07-05 15:49:16 -0400 | |
| commit | eef55f493b636bfc57389e9c541ddf2c39f6f826 (patch) | |
| tree | db7e0db06edb8dc80b67b111b4fdb06d464a1eb5 /src/video_core/gpu.cpp | |
| parent | nv_services: Stub CtrlEventSignal (diff) | |
| download | yuzu-eef55f493b636bfc57389e9c541ddf2c39f6f826.tar.gz yuzu-eef55f493b636bfc57389e9c541ddf2c39f6f826.tar.xz yuzu-eef55f493b636bfc57389e9c541ddf2c39f6f826.zip | |
Gpu: Mark areas as protected.
Diffstat (limited to 'src/video_core/gpu.cpp')
| -rw-r--r-- | src/video_core/gpu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 1fa6770ca..ee976f81f 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp | |||
| @@ -69,6 +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 | if (!events[syncpoint_id].empty()) { | 73 | if (!events[syncpoint_id].empty()) { |
| 73 | u32 value = syncpoints[syncpoint_id].load(); | 74 | u32 value = syncpoints[syncpoint_id].load(); |
| 74 | auto it = events[syncpoint_id].begin(); | 75 | auto it = events[syncpoint_id].begin(); |
| @@ -81,6 +82,7 @@ void GPU::IncrementSyncPoint(const u32 syncpoint_id) { | |||
| 81 | it++; | 82 | it++; |
| 82 | } | 83 | } |
| 83 | } | 84 | } |
| 85 | sync_guard.unlock(); | ||
| 84 | } | 86 | } |
| 85 | 87 | ||
| 86 | u32 GPU::GetSyncpointValue(const u32 syncpoint_id) const { | 88 | u32 GPU::GetSyncpointValue(const u32 syncpoint_id) const { |