diff options
Diffstat (limited to '')
| -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: | |||
| 46 | 46 | ||
| 47 | /// Refresh the known GPU tick | 47 | /// Refresh the known GPU tick |
| 48 | void Refresh() { | 48 | void Refresh() { |
| 49 | auto this_tick = gpu_tick.load(std::memory_order_acquire); | 49 | u64 this_tick{}; |
| 50 | u64 counter{}; | 50 | u64 counter{}; |
| 51 | do { | 51 | do { |
| 52 | this_tick = gpu_tick.load(std::memory_order_acquire); | ||
| 52 | counter = semaphore.GetCounter(); | 53 | counter = semaphore.GetCounter(); |
| 53 | if (counter < this_tick) { | 54 | if (counter < this_tick) { |
| 54 | return; | 55 | return; |