diff options
author | Markus Wick <markus@selfnet.de> | 2021-04-07 08:42:54 +0200 |
---|---|---|
committer | Markus Wick <markus@selfnet.de> | 2021-04-07 22:38:52 +0200 |
commit | 5145133a604f626c05f832465ac22019b003c32a (patch) | |
tree | 81aa729ab6897cadeb1251f6adcafaeab1010f0d /src/video_core/gpu_thread.h | |
parent | common/threadsafe_queue: Provide Wait() method. (diff) | |
download | yuzu-5145133a604f626c05f832465ac22019b003c32a.tar yuzu-5145133a604f626c05f832465ac22019b003c32a.tar.gz yuzu-5145133a604f626c05f832465ac22019b003c32a.tar.bz2 yuzu-5145133a604f626c05f832465ac22019b003c32a.tar.lz yuzu-5145133a604f626c05f832465ac22019b003c32a.tar.xz yuzu-5145133a604f626c05f832465ac22019b003c32a.tar.zst yuzu-5145133a604f626c05f832465ac22019b003c32a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/gpu_thread.h | 7 |
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: /// Notify rasterizer that any caches of the specified region should be flushed and invalidated void FlushAndInvalidateRegion(VAddr addr, u64 size); - // Wait until the gpu thread is idle. - void WaitIdle() const; + // Stops the GPU execution and waits for the GPU to finish working + void ShutDown(); void OnCommandListEnd(); @@ -141,6 +141,9 @@ private: /// Pushes a command to be executed by the GPU thread u64 PushCommand(CommandData&& command_data); + // Wait until the gpu thread is idle. + void WaitIdle() const; + Core::System& system; const bool is_async; VideoCore::RasterizerInterface* rasterizer = nullptr; |