diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-06-17 09:08:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 09:08:15 +0200 |
commit | 5b2b15091f38eb169648ddad4ae32f03354d19cd (patch) | |
tree | 5da9f8475543baf027cb0885bb35f06258c48d06 /src/core/cpu_manager.h | |
parent | Merge pull request #8472 from german77/tace (diff) | |
parent | core: fix initialization in single core, sync GPU mode (diff) | |
download | yuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.tar yuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.tar.gz yuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.tar.bz2 yuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.tar.lz yuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.tar.xz yuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.tar.zst yuzu-5b2b15091f38eb169648ddad4ae32f03354d19cd.zip |
Diffstat (limited to 'src/core/cpu_manager.h')
-rw-r--r-- | src/core/cpu_manager.h | 5 |
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: is_async_gpu = is_async; } + void OnGpuReady() { + gpu_barrier->Sync(); + } + void Initialize(); void Shutdown(); @@ -81,6 +85,7 @@ private: std::jthread host_thread; }; + std::unique_ptr<Common::Barrier> gpu_barrier{}; std::array<CoreData, Core::Hardware::NUM_CPU_CORES> core_data{}; bool is_async_gpu{}; |