diff options
| author | 2021-04-07 08:42:54 +0200 | |
|---|---|---|
| committer | 2021-04-07 22:38:52 +0200 | |
| commit | 5145133a604f626c05f832465ac22019b003c32a (patch) | |
| tree | 81aa729ab6897cadeb1251f6adcafaeab1010f0d /src/video_core/gpu.h | |
| parent | common/threadsafe_queue: Provide Wait() method. (diff) | |
| download | yuzu-5145133a604f626c05f832465ac22019b003c32a.tar.gz yuzu-5145133a604f626c05f832465ac22019b003c32a.tar.xz yuzu-5145133a604f626c05f832465ac22019b003c32a.zip | |
video_core/gpu_thread: Implement a ShutDown method.
This was implicitly done by `is_powered_on = false`, however the explicit method allows us to block until the GPU is actually gone.
This should fix a race condition while removing the other subsystems while the GPU is still active.
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index b2ee45496..ecab35d3b 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -219,8 +219,8 @@ public: | |||
| 219 | return *shader_notify; | 219 | return *shader_notify; |
| 220 | } | 220 | } |
| 221 | 221 | ||
| 222 | // Waits for the GPU to finish working | 222 | // Stops the GPU execution and waits for the GPU to finish working |
| 223 | void WaitIdle() const; | 223 | void ShutDown(); |
| 224 | 224 | ||
| 225 | /// Allows the CPU/NvFlinger to wait on the GPU before presenting a frame. | 225 | /// Allows the CPU/NvFlinger to wait on the GPU before presenting a frame. |
| 226 | void WaitFence(u32 syncpoint_id, u32 value); | 226 | void WaitFence(u32 syncpoint_id, u32 value); |