summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.h
diff options
context:
space:
mode:
authorGravatar bunnei2020-12-12 00:24:33 -0800
committerGravatar bunnei2020-12-28 16:33:48 -0800
commit40571c073faa02a6a4301e7f0ce365ef50a400aa (patch)
treef36bf8633469b5fc370495477e3c7cbc6e97a9c6 /src/video_core/gpu_thread.h
parentvideo_core: gpu: Refactor out synchronous/asynchronous GPU implementations. (diff)
downloadyuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.tar.gz
yuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.tar.xz
yuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.zip
video_core: gpu: Implement synchronous mode using threaded GPU.
Diffstat (limited to 'src/video_core/gpu_thread.h')
-rw-r--r--src/video_core/gpu_thread.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h
index 0071195d6..2775629e7 100644
--- a/src/video_core/gpu_thread.h
+++ b/src/video_core/gpu_thread.h
@@ -27,7 +27,7 @@ class System;
27} // namespace Core 27} // namespace Core
28 28
29namespace VideoCore { 29namespace VideoCore {
30 class RendererBase; 30class RendererBase;
31} // namespace VideoCore 31} // namespace VideoCore
32 32
33namespace VideoCommon::GPUThread { 33namespace VideoCommon::GPUThread {
@@ -117,7 +117,7 @@ struct SynchState final {
117/// Class used to manage the GPU thread 117/// Class used to manage the GPU thread
118class ThreadManager final { 118class ThreadManager final {
119public: 119public:
120 explicit ThreadManager(Core::System& system_); 120 explicit ThreadManager(Core::System& system_, bool is_async_);
121 ~ThreadManager(); 121 ~ThreadManager();
122 122
123 /// Creates and starts the GPU thread. 123 /// Creates and starts the GPU thread.
@@ -155,6 +155,7 @@ private:
155 Core::System& system; 155 Core::System& system;
156 std::thread thread; 156 std::thread thread;
157 std::thread::id thread_id; 157 std::thread::id thread_id;
158 const bool is_async;
158}; 159};
159 160
160} // namespace VideoCommon::GPUThread 161} // namespace VideoCommon::GPUThread