summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-09-15 20:32:54 -0400
committerGravatar ameerj2021-09-15 20:49:07 -0400
commit877cd60b00a3f827062fdaff93183b52174ec134 (patch)
treeddcd7153dade611b9200c1867cfa643719696e25 /src/video_core/gpu.cpp
parentthreadsafe_queue: Add std::stop_token overload to PopWait (diff)
downloadyuzu-877cd60b00a3f827062fdaff93183b52174ec134.tar.gz
yuzu-877cd60b00a3f827062fdaff93183b52174ec134.tar.xz
yuzu-877cd60b00a3f827062fdaff93183b52174ec134.zip
gpu: Use std::jthread for async gpu thread
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index ff024f530..2ae3639b5 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -531,14 +531,6 @@ void GPU::TriggerCpuInterrupt(const u32 syncpoint_id, const u32 value) const {
531 interrupt_manager.GPUInterruptSyncpt(syncpoint_id, value); 531 interrupt_manager.GPUInterruptSyncpt(syncpoint_id, value);
532} 532}
533 533
534void GPU::ShutDown() {
535 // Signal that threads should no longer block on syncpoint fences
536 shutting_down.store(true, std::memory_order_relaxed);
537 sync_cv.notify_all();
538
539 gpu_thread.ShutDown();
540}
541
542void GPU::OnCommandListEnd() { 534void GPU::OnCommandListEnd() {
543 if (is_async) { 535 if (is_async) {
544 // This command only applies to asynchronous GPU mode 536 // This command only applies to asynchronous GPU mode