From 1a23b929a7868c6318c79d784c9b6d1ff7153143 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 22 Oct 2022 13:24:16 +0100 Subject: [PATCH] Avoid chaining cycles in buffer recreation This had a chance of creating circular chains which obviously caused issues, just do a wait instead for now. --- app/src/main/cpp/skyline/gpu/buffer_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/buffer_manager.cpp b/app/src/main/cpp/skyline/gpu/buffer_manager.cpp index 0a9d13f9..9c427c76 100644 --- a/app/src/main/cpp/skyline/gpu/buffer_manager.cpp +++ b/app/src/main/cpp/skyline/gpu/buffer_manager.cpp @@ -95,7 +95,7 @@ namespace skyline::gpu { // LockedBuffer also holds `stateMutex` so we can freely access this if (srcBuffer->cycle && newBuffer->cycle != srcBuffer->cycle) { if (newBuffer->cycle) - newBuffer->cycle->ChainCycle(srcBuffer->cycle); + srcBuffer->WaitOnFence(); else newBuffer->cycle = srcBuffer->cycle; }