diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-07 22:13:40 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 15:49:16 -0400 |
| commit | 095e6b1cd95809109561ac4578744b95a857e0df (patch) | |
| tree | db7e0db06edb8dc80b67b111b4fdb06d464a1eb5 /src/video_core/gpu.cpp | |
| parent | 8c8e96b87cd019477c84ef987f12ca631ee92a4d (diff) | |
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 1fa6770ca8..ee976f81f9 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -69,6 +69,7 @@ const DmaPusher& GPU::DmaPusher() const { void GPU::IncrementSyncPoint(const u32 syncpoint_id) { syncpoints[syncpoint_id]++; + sync_guard.lock(); if (!events[syncpoint_id].empty()) { u32 value = syncpoints[syncpoint_id].load(); auto it = events[syncpoint_id].begin(); @@ -81,6 +82,7 @@ void GPU::IncrementSyncPoint(const u32 syncpoint_id) { it++; } } + sync_guard.unlock(); } u32 GPU::GetSyncpointValue(const u32 syncpoint_id) const { |
