Browse Source
Merge pull request #3387 from bunnei/gpu-mpscqueue
gpu_thread: Use MPSCQueue for GPU commands.
pull/15/merge
bunnei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/video_core/gpu_thread.h
|
|
@ -86,7 +86,7 @@ struct CommandDataContainer { |
|
|
struct SynchState final { |
|
|
struct SynchState final { |
|
|
std::atomic_bool is_running{true}; |
|
|
std::atomic_bool is_running{true}; |
|
|
|
|
|
|
|
|
using CommandQueue = Common::SPSCQueue<CommandDataContainer>; |
|
|
|
|
|
|
|
|
using CommandQueue = Common::MPSCQueue<CommandDataContainer>; |
|
|
CommandQueue queue; |
|
|
CommandQueue queue; |
|
|
u64 last_fence{}; |
|
|
u64 last_fence{}; |
|
|
std::atomic<u64> signaled_fence{}; |
|
|
std::atomic<u64> signaled_fence{}; |
|
|
|