mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 20:41:50 +01:00
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.
This commit is contained in:
parent
a15db9cb06
commit
1a23b929a7
@ -95,7 +95,7 @@ namespace skyline::gpu {
|
|||||||
// LockedBuffer also holds `stateMutex` so we can freely access this
|
// LockedBuffer also holds `stateMutex` so we can freely access this
|
||||||
if (srcBuffer->cycle && newBuffer->cycle != srcBuffer->cycle) {
|
if (srcBuffer->cycle && newBuffer->cycle != srcBuffer->cycle) {
|
||||||
if (newBuffer->cycle)
|
if (newBuffer->cycle)
|
||||||
newBuffer->cycle->ChainCycle(srcBuffer->cycle);
|
srcBuffer->WaitOnFence();
|
||||||
else
|
else
|
||||||
newBuffer->cycle = srcBuffer->cycle;
|
newBuffer->cycle = srcBuffer->cycle;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user