mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 15:59:17 +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");
|
TRACE_EVENT("gpu", "CommandExecutor::SubmitWithFlush");
|
||||||
SubmitInternal();
|
SubmitInternal();
|
||||||
cycle = activeCommandBuffer.Reset();
|
cycle = activeCommandBuffer.Reset();
|
||||||
|
megaBuffer.ReplaceCycle(cycle);
|
||||||
megaBuffer.Reset();
|
megaBuffer.Reset();
|
||||||
}
|
}
|
||||||
ResetInternal();
|
ResetInternal();
|
||||||
|
Loading…
Reference in New Issue
Block a user