diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-10-04 20:53:20 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-10-04 20:56:15 +0200 |
commit | 0498669b4bc72b7b6c9cd4a397ce7c4ebd18d28d (patch) | |
tree | dd235c2031bdeaedf9ffaf7b5712409c6b6642b9 /src/video_core/renderer_vulkan/vk_master_semaphore.h | |
parent | RasterizerInterface: Correct size of CPU addresses to cache. (diff) | |
download | yuzu-0498669b4bc72b7b6c9cd4a397ce7c4ebd18d28d.tar yuzu-0498669b4bc72b7b6c9cd4a397ce7c4ebd18d28d.tar.gz yuzu-0498669b4bc72b7b6c9cd4a397ce7c4ebd18d28d.tar.bz2 yuzu-0498669b4bc72b7b6c9cd4a397ce7c4ebd18d28d.tar.lz yuzu-0498669b4bc72b7b6c9cd4a397ce7c4ebd18d28d.tar.xz yuzu-0498669b4bc72b7b6c9cd4a397ce7c4ebd18d28d.tar.zst yuzu-0498669b4bc72b7b6c9cd4a397ce7c4ebd18d28d.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_master_semaphore.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_master_semaphore.h | 3 |
1 files changed, 2 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 3d298d0b6..0886b7da8 100644 --- a/src/video_core/renderer_vulkan/vk_master_semaphore.h +++ b/src/video_core/renderer_vulkan/vk_master_semaphore.h @@ -46,9 +46,10 @@ public: /// Refresh the known GPU tick void Refresh() { - auto this_tick = gpu_tick.load(std::memory_order_acquire); + u64 this_tick{}; u64 counter{}; do { + this_tick = gpu_tick.load(std::memory_order_acquire); counter = semaphore.GetCounter(); if (counter < this_tick) { return; |