summaryrefslogtreecommitdiffstats
path: root/src/video_core/fence_manager.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-05-04 03:16:57 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2023-05-07 23:46:12 +0200
commit6f90dff2938b5bd5e9311e924e8a29945f16ac18 (patch)
tree60d757ecc85615cf846b20a8d392261645a997ab /src/video_core/fence_manager.h
parentQuery cache: stop updating pages as it's not affected by cpu writes (diff)
downloadyuzu-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.h7
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));
}