summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu_thread.h')
-rw-r--r--src/video_core/gpu_thread.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h
index 18269e51c..d384164de 100644
--- a/src/video_core/gpu_thread.h
+++ b/src/video_core/gpu_thread.h
@@ -132,8 +132,8 @@ public:
132 /// Notify rasterizer that any caches of the specified region should be flushed and invalidated 132 /// Notify rasterizer that any caches of the specified region should be flushed and invalidated
133 void FlushAndInvalidateRegion(VAddr addr, u64 size); 133 void FlushAndInvalidateRegion(VAddr addr, u64 size);
134 134
135 // Wait until the gpu thread is idle. 135 // Stops the GPU execution and waits for the GPU to finish working
136 void WaitIdle() const; 136 void ShutDown();
137 137
138 void OnCommandListEnd(); 138 void OnCommandListEnd();
139 139
@@ -141,6 +141,9 @@ private:
141 /// Pushes a command to be executed by the GPU thread 141 /// Pushes a command to be executed by the GPU thread
142 u64 PushCommand(CommandData&& command_data); 142 u64 PushCommand(CommandData&& command_data);
143 143
144 // Wait until the gpu thread is idle.
145 void WaitIdle() const;
146
144 Core::System& system; 147 Core::System& system;
145 const bool is_async; 148 const bool is_async;
146 VideoCore::RasterizerInterface* rasterizer = nullptr; 149 VideoCore::RasterizerInterface* rasterizer = nullptr;