summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-14 02:52:38 +0200
committerGitHub <noreply@github.com>2021-04-14 02:52:38 +0200
commit12a343ed8d89c2105a4bc36f3f0a5e9ebbaabf86 (patch)
tree368a9bdd128e2a134957ef7f5b9b7cb8fa6bfc82 /src/video_core/renderer_vulkan
parentMerge pull request #6188 from lioncash/bits (diff)
parentvk_master_semaphore: Deduplicate atomic access within IsFree() (diff)
downloadyuzu-12a343ed8d89c2105a4bc36f3f0a5e9ebbaabf86.tar
yuzu-12a343ed8d89c2105a4bc36f3f0a5e9ebbaabf86.tar.gz
yuzu-12a343ed8d89c2105a4bc36f3f0a5e9ebbaabf86.tar.bz2
yuzu-12a343ed8d89c2105a4bc36f3f0a5e9ebbaabf86.tar.lz
yuzu-12a343ed8d89c2105a4bc36f3f0a5e9ebbaabf86.tar.xz
yuzu-12a343ed8d89c2105a4bc36f3f0a5e9ebbaabf86.tar.zst
yuzu-12a343ed8d89c2105a4bc36f3f0a5e9ebbaabf86.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_master_semaphore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_master_semaphore.h b/src/video_core/renderer_vulkan/vk_master_semaphore.h
index 2c7ed654d..4b6d64daa 100644
--- a/src/video_core/renderer_vulkan/vk_master_semaphore.h
+++ b/src/video_core/renderer_vulkan/vk_master_semaphore.h
@@ -35,8 +35,8 @@ public:
}
/// Returns true when a tick has been hit by the GPU.
- [[nodiscard]] bool IsFree(u64 tick) {
- return gpu_tick.load(std::memory_order_relaxed) >= tick;
+ [[nodiscard]] bool IsFree(u64 tick) const noexcept {
+ return KnownGpuTick() >= tick;
}
/// Advance to the logical tick.