diff options
author | Lioncash <[email protected]> | 2021-04-12 09:41:53 -0400 |
---|---|---|
committer | Lioncash <[email protected]> | 2021-04-12 09:41:55 -0400 |
commit | 9b331a5fb537336e4bbca575fde974d4e465c792 (patch) | |
tree | e1bff7603b5790cfa8dd9899b329be3f0147ec5d /src | |
parent | c5f5d6e7f6dadf16d2d175a0aaba58deacffa579 (diff) | |
download | yuzu-mainline-9b331a5fb537336e4bbca575fde974d4e465c792.tar.gz yuzu-mainline-9b331a5fb537336e4bbca575fde974d4e465c792.zip |
vk_master_semaphore: Deduplicate atomic access within IsFree()
We can just reuse the already existing KnownGpuTick() to deduplicate the
access.
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_master_semaphore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_master_semaphore.h b/src/video_core/renderer_vulkan/vk_master_semaphore.h index 60ffa6d97..4b6d64daa 100644 --- a/src/video_core/renderer_vulkan/vk_master_semaphore.h +++ b/src/video_core/renderer_vulkan/vk_master_semaphore.h @@ -36,7 +36,7 @@ public: /// Returns true when a tick has been hit by the GPU. [[nodiscard]] bool IsFree(u64 tick) const noexcept { - return gpu_tick.load(std::memory_order_relaxed) >= tick; + return KnownGpuTick() >= tick; } /// Advance to the logical tick. |