Vulkan: Fix failing barrier on refresh.

master
Fernando Sahmkow 2021-10-04 20:53:20 +07:00
parent bb8bf740e9
commit 0498669b4b
1 changed files with 2 additions and 1 deletions

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