summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.h
diff options
context:
space:
mode:
authorGravatar liamwhite2022-06-15 19:39:22 -0400
committerGravatar GitHub2022-06-15 19:39:22 -0400
commit0ae4eae9a6f5ccb351ad1eb2ae35fb35d03661e1 (patch)
tree94d07f494151a5701f48e147c75b9e4673d5b918 /src/video_core/gpu_thread.h
parentMerge pull request #8317 from german77/notifa (diff)
parentbounded_threadsafe_queue: Use constexpr capacity and mask (diff)
downloadyuzu-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.h2
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 {
98struct SynchState final { 98struct 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;