diff options
| author | 2022-06-15 19:39:22 -0400 | |
|---|---|---|
| committer | 2022-06-15 19:39:22 -0400 | |
| commit | 0ae4eae9a6f5ccb351ad1eb2ae35fb35d03661e1 (patch) | |
| tree | 94d07f494151a5701f48e147c75b9e4673d5b918 /src/video_core/gpu_thread.h | |
| parent | Merge pull request #8317 from german77/notifa (diff) | |
| parent | bounded_threadsafe_queue: Use constexpr capacity and mask (diff) | |
| download | yuzu-0ae4eae9a6f5ccb351ad1eb2ae35fb35d03661e1.tar.gz yuzu-0ae4eae9a6f5ccb351ad1eb2ae35fb35d03661e1.tar.xz yuzu-0ae4eae9a6f5ccb351ad1eb2ae35fb35d03661e1.zip | |
Merge pull request #8460 from Morph1984/bounded-q
bounded_threadsafe_queue: Use constexpr capacity and mask
Diffstat (limited to 'src/video_core/gpu_thread.h')
| -rw-r--r-- | src/video_core/gpu_thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h index ad9fd5eff..be0ac2214 100644 --- a/src/video_core/gpu_thread.h +++ b/src/video_core/gpu_thread.h | |||
| @@ -98,7 +98,7 @@ struct CommandDataContainer { | |||
| 98 | struct SynchState final { | 98 | struct SynchState final { |
| 99 | using CommandQueue = Common::MPSCQueue<CommandDataContainer>; | 99 | using CommandQueue = Common::MPSCQueue<CommandDataContainer>; |
| 100 | std::mutex write_lock; | 100 | std::mutex write_lock; |
| 101 | CommandQueue queue{512}; // size must be 2^n | 101 | CommandQueue queue; |
| 102 | u64 last_fence{}; | 102 | u64 last_fence{}; |
| 103 | std::atomic<u64> signaled_fence{}; | 103 | std::atomic<u64> signaled_fence{}; |
| 104 | std::condition_variable_any cv; | 104 | std::condition_variable_any cv; |