diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-14 02:52:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 02:52:38 +0200 |
commit | 12a343ed8d89c2105a4bc36f3f0a5e9ebbaabf86 (patch) | |
tree | 368a9bdd128e2a134957ef7f5b9b7cb8fa6bfc82 /src/video_core/renderer_vulkan | |
parent | Merge pull request #6188 from lioncash/bits (diff) | |
parent | vk_master_semaphore: Deduplicate atomic access within IsFree() (diff) | |
download | yuzu-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.h | 4 |
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. |