diff options
| author | 2020-02-01 21:01:47 -0500 | |
|---|---|---|
| committer | 2020-02-07 23:01:23 -0500 | |
| commit | b5c13ee0eb803aa2e584d789e4631e61a3212700 (patch) | |
| tree | c98764674302cd2a2ae9cccfdde7fa8ce47432c5 | |
| parent | Merge pull request #3378 from ReinUsesLisp/uscaled (diff) | |
| download | yuzu-b5c13ee0eb803aa2e584d789e4631e61a3212700.tar.gz yuzu-b5c13ee0eb803aa2e584d789e4631e61a3212700.tar.xz yuzu-b5c13ee0eb803aa2e584d789e4631e61a3212700.zip | |
gpu_thread: Use MPSCQueue for GPU commands.
- Necessary for multiple service threads.
| -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 08dc96bb3..882e2d9c7 100644 --- a/src/video_core/gpu_thread.h +++ b/src/video_core/gpu_thread.h | |||
| @@ -86,7 +86,7 @@ struct CommandDataContainer { | |||
| 86 | struct SynchState final { | 86 | struct SynchState final { |
| 87 | std::atomic_bool is_running{true}; | 87 | std::atomic_bool is_running{true}; |
| 88 | 88 | ||
| 89 | using CommandQueue = Common::SPSCQueue<CommandDataContainer>; | 89 | using CommandQueue = Common::MPSCQueue<CommandDataContainer>; |
| 90 | CommandQueue queue; | 90 | CommandQueue queue; |
| 91 | u64 last_fence{}; | 91 | u64 last_fence{}; |
| 92 | std::atomic<u64> signaled_fence{}; | 92 | std::atomic<u64> signaled_fence{}; |