mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 20:41:50 +01:00
Fix SubmitWithFlush
not updating MegaBuffer
cycle
The `CommandExecutor`'s `MegaBuffer` was not being updated with the latest `FenceCycle` on being flushed in `SubmitWIthFlush`, this led to the megabuffer being overwritten prior to its GPU-side usage being complete. This commit fixes that by replacing the cycle to the latest cycle and prevents any races that occurred prior.
This commit is contained in:
parent
3e9d84b0c3
commit
96d8676d5b
@ -350,6 +350,7 @@ namespace skyline::gpu::interconnect {
|
||||
TRACE_EVENT("gpu", "CommandExecutor::SubmitWithFlush");
|
||||
SubmitInternal();
|
||||
cycle = activeCommandBuffer.Reset();
|
||||
megaBuffer.ReplaceCycle(cycle);
|
||||
megaBuffer.Reset();
|
||||
}
|
||||
ResetInternal();
|
||||
|
Loading…
Reference in New Issue
Block a user