What: the status hold for shared-event waits is deleted:
- hold(), Pending::held and QueueInner::held;
- the completion thread's held list and due();
- EventState::holds and its host-set wake, EventInner::shared;
- the hold_completions test seam, which only the deleted test used.
A command buffer whose wait's signal is submitted is now scheduled as its last segment joins a
submission, its scheduled handlers run then, as for a plain event's wait. A presenting one is
scheduled after vkQueueSubmit2, as for any other. Its queue's later command buffers are no
longer held behind it. Waits on a value that neither the host has set nor a submitted signal
promises stay host-held by the submit thread, as before: every queue submits to one VkQueue,
and a wait submitted ahead of its signal would hold the signal too (vkspec 8432; 6.6, 8985).
Metrics::event_holds counts those.
Why: the hold rested on an M3 recording (event-wait-behind-a-running-signal), not on documented
Metal. MTLCommandBuffer.h:47-48 describes Scheduled as "All dependencies have been resolved and
the command buffer has been scheduled for execution", and :405-406 describes
encodeWaitForEvent:value: as a command that "pauses execution of this command buffer until the
specified event reaches a given value". So execution pauses after scheduling. On the RTX 2080
walk, after the walk's clock correction, the hold lasted p50 5 ms and p90 9 ms per interval, in
command-buffer counts; the 33.6 ms read earlier as the hold was the submit stage, before that
correction.
What the deletion removes, in the walk's terms: a command buffer's kernel start is its commit,
raised to its queue's previous command buffer's scheduling where that is later, and its kernel
end is its scheduling. So a held command buffer's late scheduling also delayed the scheduling
of every later one on its queue. The deletion removes the held command buffers, and that chain
behind each one, from the span before staging. What is left there is the submit thread's own
pace: its passes over other groups, their calls and queue locks.
Scope of the claim:
- It changes nothing about GPU order or when a waiter completes: the wait still goes to the
driver with its submission, as before.
- It changes when the guest's threads and handlers see Scheduled: a frame loop waiting on
Scheduled no longer makes one GPU-to-host round trip per link.
- Its effect on presents per second is not known until the walk at the pin.
Docs: CommandBufferStatus::Scheduled, add_scheduled_handler, Device::new_shared_event, the
runtime README's submission and handler paragraphs (quoting both header lines so the hold is not
brought back from a recording), and docs/API.md's accepted differences. The conformance case
event-wait-behind-a-running-signal declares the shared-event row's status and handlers loosened
on the runtime by that entry, and its test checks that a status other than Committed or
Scheduled is still a row.
How verified: the lane's lavapipe gate on this series' tip tree, and the negative job for the
two tests of the commit before (FAIL there, PASS at the tip).