Introduce support for waiting for submission to FenceCycle

Introducing async record resulted in breaking the assumption that any work submitted through command scheduler would be submitted in order with graphics submits. Since async record now unlocks the texture before it's submitted a seperate mechanism is needed to ensure ordering of submits. This is achieved by building support into fence cycle itself, with a conditional variable that is waited on for submission before any fence waits occur.
This commit is contained in:
Billy Laws
2022-09-29 21:24:02 +01:00
parent 54b85583ae
commit 7dc3dde815
3 changed files with 50 additions and 1 deletions

View File

@ -85,6 +85,7 @@ namespace skyline::gpu {
}, cycle->fence);
}
cycle->NotifySubmitted();
cycleQueue.Push(cycle);
}
}