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 | 37ae463f9e87ace555354857a59bbb9e5c3906cb (patch) | |
| tree | 81aa729ab6897cadeb1251f6adcafaeab1010f0d /src/video_core/gpu.cpp | |
| parent | b529aba9cef9d0db1990c637ae31cee2c9bddebd (diff) | |
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.cpp')
| -rw-r--r-- | src/video_core/gpu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index c61f446196..009c6f5748 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -517,8 +517,8 @@ void GPU::TriggerCpuInterrupt(const u32 syncpoint_id, const u32 value) const { interrupt_manager.GPUInterruptSyncpt(syncpoint_id, value); } -void GPU::WaitIdle() const { - gpu_thread.WaitIdle(); +void GPU::ShutDown() { + gpu_thread.ShutDown(); } void GPU::OnCommandListEnd() { |
