summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-01-03 18:31:33 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2022-01-03 18:31:33 +0100
commitd866916f42c3bbb21aa6f046140737690c1ce47f (patch)
treecd549393ec6076b812d75abc7be87f3ec4b96312 /src/core/hle
parentMerge pull request #7648 from bunnei/thread-pinning (diff)
downloadyuzu-d866916f42c3bbb21aa6f046140737690c1ce47f.tar
yuzu-d866916f42c3bbb21aa6f046140737690c1ce47f.tar.gz
yuzu-d866916f42c3bbb21aa6f046140737690c1ce47f.tar.bz2
yuzu-d866916f42c3bbb21aa6f046140737690c1ce47f.tar.lz
yuzu-d866916f42c3bbb21aa6f046140737690c1ce47f.tar.xz
yuzu-d866916f42c3bbb21aa6f046140737690c1ce47f.tar.zst
yuzu-d866916f42c3bbb21aa6f046140737690c1ce47f.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index a22811ec1..396cc5afa 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -266,10 +266,11 @@ void NVFlinger::Compose() {
auto& gpu = system.GPU();
const auto& multi_fence = buffer->get().multi_fence;
+ const auto stop_token = vsync_thread.get_stop_token();
guard->unlock();
for (u32 fence_id = 0; fence_id < multi_fence.num_fences; fence_id++) {
const auto& fence = multi_fence.fences[fence_id];
- gpu.WaitFence(fence.id, fence.value);
+ gpu.WaitFence(fence.id, fence.value, stop_token);
}
guard->lock();