The rt platform's state finishes, ComputePipeline::finish and
RenderPipeline::finish, now call rt's finish_pipeline: the driver's create of
the state's main pipelines, which rt's creators leave out since 951285e7a7, runs
on the device's compile thread after the create's reply and before its store.
For the guest: a pipeline create's reply no longer waits for the driver's
create of its main pipeline, as it did before the pin move; the store, and the
command buffers, indirect command buffer writes and function handle and table
creates that name the pipeline, still do, so its first draw or dispatch no
longer makes that pipeline on its queue's lane, as it did with the pin move
alone. Every answer the reply carries is made before the driver's create, so
nothing the guest reads changes beside timing. A finish rt fails is the create's
late failure, pipeline-finish-failed, as before: the pipeline is stored as made,
and a draw or dispatch that needs it makes it again, refused at its encode where
that make fails too; the accuracy ledger lists it.
A create whose destroy, context close or reset came before its finish began is
no longer finished: its pipeline is never stored, so the driver's create would
be wasted. A finish already running still ends. A keyed create skipped so keeps
its answer as its make answered it.
The counts line gains rt's new metrics: rt-finished-pipelines and
rt-finished-pipeline-ns, rt-first-use-unfinished-waits and
rt-first-use-unfinished-wait-ns, and rt-first-use-unfinished-wait-max-ns at its
highest over the process's devices. The ten-second rt summary says the finishes
and the unfinished waits, and the trace's rtmetrics event ends with the five
values. rt's failed_finishes is not folded: the device's pipeline-finish-failed
counts each failure at the platform's seam, where every platform's finish
answers (a raise or death in the platform's refusal scope too, which rt never
sees) and where the failure's guest-visible effect is decided, so the line
carries each failure once.
docs/conventions.md's stall rule names the reply ahead of the driver's create as
its second exception, and compile.rs's Order, the design doc and the rt
platform's pipeline docs say what the finish now does.