yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #6190 from lioncash/constfn2

vk_master_semaphore: Add missing const qualifier for IsFree()
This commit is contained in:
bunnei 2021-04-13 17:52:38 -07:00 committed by GitHub
commit 12a343ed8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ public:
} }
/// Returns true when a tick has been hit by the GPU. /// Returns true when a tick has been hit by the GPU.
[[nodiscard]] bool IsFree(u64 tick) { [[nodiscard]] bool IsFree(u64 tick) const noexcept {
return gpu_tick.load(std::memory_order_relaxed) >= tick; return KnownGpuTick() >= tick;
} }
/// Advance to the logical tick. /// Advance to the logical tick.