A pass left for its draws' pipelines takes its encoding again once they are made
A render pass whose draw's VkPipeline was still being made as it was encoded records as a segment
of its encoder once the pipeline is made (render/pending.rs). A rate map's reset after that
making finished, before the command buffer's commit or after it while the command buffer waited,
encoded the pass again from its log, and the splice refused it: the segment in its place was
neither one whose pipelines are still being made nor work recorded on the GPU alone. The pass
then drew by the map it took and the reset announced rate-map-reset-unencoded, where Metal's GPU
draws by the map as reset. The rate-mapped multi-draw route made this common: its vertex variant
is made at a pass's first draw, so the reset lanes failed by timing
(a_reset_shows_in_a_pass_not_yet_submitted and a_reset_shows_in_every_pass_not_yet_submitted on
lavapipe, jobs m3-max-22179 and m3-max-22244).
The splice now also takes the place of a render pass left for its draws' or tile dispatches'
pipelines alone and executing no render commands (Deferred::left_for_pipelines,
DeferredPass::left_for_pipelines), made since or not: the encoding again recorded those draws
where it found their pipelines made, or left a segment of its own where they were still being
made, and what the first recording took stays retained, as for a segment still being made.
Verified, before the fix: a diagnostic on lavapipe (job m3-max-22327) waited a second after the
draw and refused the splice in both cases ("keeps false gpu_alone false ... making false"),
shading the identity's 64 by 64 pixels with the notice; without the wait the pipeline was still
being made and the splice took it. The new lane
a_reset_shows_in_a_pass_whose_pipeline_was_made_after_its_draw waits for the making
(WorkCounts::variant_pipelines_made) and checks the half map's 33 by 33 pixels and no notice.
This commit is contained in:
1 parent
2117d6af79
commit
f10321aad5
4 files changed
+90
-1
No files matched your search
@@ -349,7 +349,10 @@ impl State {
|
||||
/// `VkCommandBuffer`s go with the pool unsubmitted. Refused, changing nothing and giving
|
||||
/// `replayed` back, where its place holds other parts than the encoding again's, or a segment
|
||||
/// but one whose pipelines are being made (which goes, the encoding again having left one of
|
||||
/// its own in its place), work its commit recorded on the GPU alone, a run's merge (which
|
||||
/// its own in its place), a render pass left for its draws' pipelines alone and recorded or
|
||||
/// not since they were made (which goes, the encoding again having recorded those draws, or
|
||||
/// left a segment of its own where it found them still being made), work its commit recorded
|
||||
/// on the GPU alone, a run's merge (which
|
||||
/// goes, the encoding again merging after itself, `pass_runs.rs`), or a staged gather (which
|
||||
/// goes, the encoding again copying through the imports, `host_ram/copy.rs`), or its group
|
||||
/// was submitted, or the command buffer completed.
|
||||
@@ -368,6 +371,7 @@ impl State {
|
||||
recorded.sparse.is_empty()
|
||||
&& (recorded.segments.iter()).all(|segment| {
|
||||
segment.keeps_pipelines()
|
||||
|| segment.work.left_for_pipelines()
|
||||
|| segment.gpu_alone
|
||||
|| segment.work.joins_a_run()
|
||||
|| segment.work.recorded_by_an_encoding_again()
|
||||
|
||||
Reference in new issue
Block a user