summaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.h
diff options
context:
space:
mode:
authorGravatar Morph2022-06-17 03:08:15 -0400
committerGravatar GitHub2022-06-17 03:08:15 -0400
commit5b2b15091f38eb169648ddad4ae32f03354d19cd (patch)
tree5da9f8475543baf027cb0885bb35f06258c48d06 /src/core/cpu_manager.h
parentMerge pull request #8472 from german77/tace (diff)
parentcore: fix initialization in single core, sync GPU mode (diff)
downloadyuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.tar.gz
yuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.tar.xz
yuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.zip
Merge pull request #8476 from liamwhite/gpu-wasnt-ready
core: fix initialization in single core, sync GPU mode
Diffstat (limited to 'src/core/cpu_manager.h')
-rw-r--r--src/core/cpu_manager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h
index 681bdaf19..f0751fc58 100644
--- a/src/core/cpu_manager.h
+++ b/src/core/cpu_manager.h
@@ -43,6 +43,10 @@ public:
43 is_async_gpu = is_async; 43 is_async_gpu = is_async;
44 } 44 }
45 45
46 void OnGpuReady() {
47 gpu_barrier->Sync();
48 }
49
46 void Initialize(); 50 void Initialize();
47 void Shutdown(); 51 void Shutdown();
48 52
@@ -81,6 +85,7 @@ private:
81 std::jthread host_thread; 85 std::jthread host_thread;
82 }; 86 };
83 87
88 std::unique_ptr<Common::Barrier> gpu_barrier{};
84 std::array<CoreData, Core::Hardware::NUM_CPU_CORES> core_data{}; 89 std::array<CoreData, Core::Hardware::NUM_CPU_CORES> core_data{};
85 90
86 bool is_async_gpu{}; 91 bool is_async_gpu{};