diff options
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index bc63920f2..ab1a4bdd4 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -8,11 +8,11 @@ | |||
| 8 | #include <atomic> | 8 | #include <atomic> |
| 9 | #include <list> | 9 | #include <list> |
| 10 | #include <memory> | 10 | #include <memory> |
| 11 | #include <mutex> | ||
| 11 | #include "common/common_types.h" | 12 | #include "common/common_types.h" |
| 12 | #include "core/hle/service/nvdrv/nvdata.h" | 13 | #include "core/hle/service/nvdrv/nvdata.h" |
| 13 | #include "core/hle/service/nvflinger/buffer_queue.h" | 14 | #include "core/hle/service/nvflinger/buffer_queue.h" |
| 14 | #include "video_core/dma_pusher.h" | 15 | #include "video_core/dma_pusher.h" |
| 15 | #include "common/spin_lock.h" | ||
| 16 | 16 | ||
| 17 | using CacheAddr = std::uintptr_t; | 17 | using CacheAddr = std::uintptr_t; |
| 18 | inline CacheAddr ToCacheAddr(const void* host_ptr) { | 18 | inline CacheAddr ToCacheAddr(const void* host_ptr) { |
| @@ -178,9 +178,9 @@ public: | |||
| 178 | 178 | ||
| 179 | void Guard(bool guard_set) { | 179 | void Guard(bool guard_set) { |
| 180 | if (guard_set) { | 180 | if (guard_set) { |
| 181 | sync_guard.lock(); | 181 | sync_mutex.lock(); |
| 182 | } else { | 182 | } else { |
| 183 | sync_guard.unlock(); | 183 | sync_mutex.unlock(); |
| 184 | } | 184 | } |
| 185 | } | 185 | } |
| 186 | 186 | ||
| @@ -297,7 +297,7 @@ private: | |||
| 297 | 297 | ||
| 298 | std::array<std::list<Event>, Service::Nvidia::MaxSyncPoints> events; | 298 | std::array<std::list<Event>, Service::Nvidia::MaxSyncPoints> events; |
| 299 | 299 | ||
| 300 | Common::SpinLock sync_guard{}; | 300 | std::mutex sync_mutex; |
| 301 | }; | 301 | }; |
| 302 | 302 | ||
| 303 | #define ASSERT_REG_POSITION(field_name, position) \ | 303 | #define ASSERT_REG_POSITION(field_name, position) \ |