Under CompletionPolicy::Grouped a batch refused a place in a group while no group
was held went alone and was counted nowhere: group_ends_* count only groups that
held a batch. So the consumer's steady Launchpad walks (batches_grouped 0,
group_ends_drained 1 a window) could not say why nothing grouped.
Each batch on a VkQueue whose batches group that goes in a kernel submission of
its own now counts once, by the first reason in group::Alone's order
(WorkCounts::batches_alone_* and batches_held_alone_*): an unshared queue's
batch, a binary wait or signal (a completion sync file), a sparse update, pieced
work, a fence, an unknown or too long expected run, first work or a wrapped image
with no group held, a committing thread's submission; or, held in a group that
went holding it alone, what sent that group (at most one earlier submission in
flight, an unshared queue's hold on the VkQueue, a head waiting for the GPU,
another queue's handlers, a waiter, kept with none joining, a batch that could
not join, or other). Group::keeps answers why it does not keep. And
batches_of_unshared_queues counts unshared queues' batches on every device, so a
walk under either policy gives their share.
The validation lane's alone_batches checks one batch per reason it can make
deterministic (unknown run, at commit, one pending, a completion sync file, an
unshared queue, beside an unshared queue) on a device that groups, and none
counted elsewhere; steady_presents (ignored, a measurement) runs a steady
present shape with an unshared compositor queue and prints the spread.
Conformance classes the counts that follow what the host had seen complete as
not the case's own. API signatures blessed.
Also 4d71df7f28 (a type alias for clippy) and 5e04b74b48: FAST-PATHS: grouped submissions' measured lateness, the unshared exclusions and the alone counts
Row 38 edited in place, docs only. It now states:
- the measured cost of the fast form in the consumer's guest walks on RADV at
ca6259f7d1 (lateness of command buffers seen complete after a later one's
end, p99 18.4 ms against Exact's 2.1 ms on the 780M, 5.1 against 2.4 ms on
the XTX), against the Metal oracles' p99 of at most 0.28 ms;
- that the bounds are on expected runs, so a later batch running longer than
its queue's recent ones makes earlier members late by its actual run, which
no bound set ahead can cap;
- that CompletionPolicy::Exact adds none of this lateness;
- that an unshared queue's batches join no group on a VkQueue held back for it
and no group is kept there, which on a device of one graphics VkQueue (RADV,
ANV, lavapipe) keeps no group of any queue: read from group.rs (Group::keeps,
CommandBufferShared::groups) and create.rs's queue plan;
- the new per-reason counts (batches_alone_* and batches_of_unshared_queues).
The fast form's bounds are unchanged (owner's call, AGENTS.md rule 1).
Verified in the lane: m3-max-35367 at 71158a8ea4 plain clippy (runtime, validation, conformance,
metal2vulkan) 0, api_signatures 3/3, conformance 119/119, runtime group tests 12/12;
m3-max-35394 at 5e04b74b48 lavapipe clippy m2v_cpu_icd 0, alone_batches + grouped_submissions
16/16. Still running when landed: clippy m2v_gpu, plain clippy + fast_paths + rustdoc at the tip,
one PHOENIX run of the counts (path-ran evidence). Bounds unchanged.
New Degradation kinds: none.