mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
Vulkan: Fix failing barrier on refresh.
This commit is contained in:
parent
bb8bf740e9
commit
0498669b4b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user