diff options
Diffstat (limited to 'src/video_core/gpu_thread.h')
| -rw-r--r-- | src/video_core/gpu_thread.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h index f1c52cd9e..2775629e7 100644 --- a/src/video_core/gpu_thread.h +++ b/src/video_core/gpu_thread.h | |||
| @@ -10,8 +10,9 @@ | |||
| 10 | #include <optional> | 10 | #include <optional> |
| 11 | #include <thread> | 11 | #include <thread> |
| 12 | #include <variant> | 12 | #include <variant> |
| 13 | |||
| 13 | #include "common/threadsafe_queue.h" | 14 | #include "common/threadsafe_queue.h" |
| 14 | #include "video_core/gpu.h" | 15 | #include "video_core/framebuffer_config.h" |
| 15 | 16 | ||
| 16 | namespace Tegra { | 17 | namespace Tegra { |
| 17 | struct FramebufferConfig; | 18 | struct FramebufferConfig; |
| @@ -25,6 +26,10 @@ class GraphicsContext; | |||
| 25 | class System; | 26 | class System; |
| 26 | } // namespace Core | 27 | } // namespace Core |
| 27 | 28 | ||
| 29 | namespace VideoCore { | ||
| 30 | class RendererBase; | ||
| 31 | } // namespace VideoCore | ||
| 32 | |||
| 28 | namespace VideoCommon::GPUThread { | 33 | namespace VideoCommon::GPUThread { |
| 29 | 34 | ||
| 30 | /// Command to signal to the GPU thread that processing has ended | 35 | /// Command to signal to the GPU thread that processing has ended |
| @@ -112,7 +117,7 @@ struct SynchState final { | |||
| 112 | /// Class used to manage the GPU thread | 117 | /// Class used to manage the GPU thread |
| 113 | class ThreadManager final { | 118 | class ThreadManager final { |
| 114 | public: | 119 | public: |
| 115 | explicit ThreadManager(Core::System& system_); | 120 | explicit ThreadManager(Core::System& system_, bool is_async_); |
| 116 | ~ThreadManager(); | 121 | ~ThreadManager(); |
| 117 | 122 | ||
| 118 | /// Creates and starts the GPU thread. | 123 | /// Creates and starts the GPU thread. |
| @@ -150,6 +155,7 @@ private: | |||
| 150 | Core::System& system; | 155 | Core::System& system; |
| 151 | std::thread thread; | 156 | std::thread thread; |
| 152 | std::thread::id thread_id; | 157 | std::thread::id thread_id; |
| 158 | const bool is_async; | ||
| 153 | }; | 159 | }; |
| 154 | 160 | ||
| 155 | } // namespace VideoCommon::GPUThread | 161 | } // namespace VideoCommon::GPUThread |