summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-06-14 08:57:19 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-06-15 16:59:13 -0400
commit25429998e373c12287ae8da2a1c9c1bbe7bd7047 (patch)
tree0f3e3afac950b0bd5ada9f5a143a38a1ea530b84 /src/video_core
parentbd3bfe411d8319b8300037a78c152ad7dab839f3 (diff)
bounded_threadsafe_queue: Use constexpr capacity and mask
While this is the primary change, we also: - Remove the mpsc namespace and rename Queue to MPSCQueue - Make Slot a private struct within MPSCQueue - Remove the AlignedAllocator template argument, as we use std::allocator - Replace instances of mask + 1 with capacity, and mask + 2 with capacity + 1
Diffstat (limited to 'src/video_core')
-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 {
struct SynchState final {
using CommandQueue = Common::MPSCQueue<CommandDataContainer>;
std::mutex write_lock;
- CommandQueue queue{512}; // size must be 2^n
+ CommandQueue queue;
u64 last_fence{};
std::atomic<u64> signaled_fence{};
std::condition_variable_any cv;