Explorar o código

Vulkan: Fix failing barrier on refresh.

Fernando Sahmkow %!s(int64=4) %!d(string=hai) anos
pai
achega
0498669b4b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/video_core/renderer_vulkan/vk_master_semaphore.h

+ 2 - 1
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;