2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

vk_master_semaphore: Deduplicate atomic access within IsFree()

We can just reuse the already existing KnownGpuTick() to deduplicate the
access.
This commit is contained in:
Lioncash 2021-04-12 09:41:53 -04:00
parent c5f5d6e7f6
commit 9b331a5fb5

View file

@ -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.