diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-05-04 03:16:57 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-05-07 23:46:12 +0200 |
commit | 6f90dff2938b5bd5e9311e924e8a29945f16ac18 (patch) | |
tree | 60d757ecc85615cf846b20a8d392261645a997ab /src/video_core/fence_manager.h | |
parent | Query cache: stop updating pages as it's not affected by cpu writes (diff) | |
download | yuzu-6f90dff2938b5bd5e9311e924e8a29945f16ac18.tar yuzu-6f90dff2938b5bd5e9311e924e8a29945f16ac18.tar.gz yuzu-6f90dff2938b5bd5e9311e924e8a29945f16ac18.tar.bz2 yuzu-6f90dff2938b5bd5e9311e924e8a29945f16ac18.tar.lz yuzu-6f90dff2938b5bd5e9311e924e8a29945f16ac18.tar.xz yuzu-6f90dff2938b5bd5e9311e924e8a29945f16ac18.tar.zst yuzu-6f90dff2938b5bd5e9311e924e8a29945f16ac18.zip |
Diffstat (limited to 'src/video_core/fence_manager.h')
-rw-r--r-- | src/video_core/fence_manager.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/fence_manager.h b/src/video_core/fence_manager.h index 850d6f27d..35d699bbf 100644 --- a/src/video_core/fence_manager.h +++ b/src/video_core/fence_manager.h @@ -55,7 +55,12 @@ public: // Unlike other fences, this one doesn't void SignalOrdering() { - std::function<void()> do_nothing([]{}); + std::scoped_lock lock{buffer_cache.mutex}; + buffer_cache.AccumulateFlushes(); + } + + void SignalReference() { + std::function<void()> do_nothing([] {}); SignalFence(std::move(do_nothing)); } |