What: `landing_waits`, the waits a checked head's submission checks wait to land, now skips
every wait that `EventShared::wait` answers. A plain event's wait for a signal submitted or
reserved before the batch therefore holds no check. The check runs as soon as the batch is
otherwise ready (on the scheduler's thread, or via `claim_check` on a committing thread in
commit_and_submit), and the batch goes with its wait on the VkQueue, as an unchecked batch's
does. A shared event's wait still holds the check until its value is reached, because
`EventTimeline::wait` answers none for it while the host may set the value. So does a plain
event's wait for a signal behind a merge.
Why: reims's 5080 decode path saw no gain from a plain Event, because their platform checks
every command buffer and the checked head was held until the signal landed. The conformance
case event-wait-behind-a-running-signal (previous commit) measured Metal on the M3 Max (macOS
27.0.1): a command buffer whose MTLEvent wait only a still-running signal meets is Scheduled at
once, so it is submitted and checked at once. One whose MTLSharedEvent wait such a signal meets
stays Committed until the signal lands. The old rule was Metal's for the shared event only.
Docs: checks.rs "When." states the split and cites the case. The runtime README
(set_submission_check, commit_and_submit) and RUNTIME-PORTING (the same two rows) say the same.
docs/API.md states no such rule, so it is unchanged.
Lane tests (runtime_lane::submission_checks):
- an_event_wait_a_gpu_signal_in_flight_meets_is_checked_at_once (new). In one try the waiter
reads Scheduled while the signaller's companion event still reads 0, and the companion read 0
inside its check. In every try `heads_awaiting_check_signals` does not move, the check runs
once, and the fill runs. This holds both for a waiter committed before the signaller and for
one committed with commit_and_submit while the signal is in flight.
- a_submission_detached_while_a_gpu_signal_is_in_flight_fails now covers the SharedEvent alone,
and asserts that `heads_awaiting_check_signals` counts the held head.
Verified on the M3 Max (MoltenVK 1.4.2), --cfg m2v_gpu, through maclock and memcap 12288:
124 passed. That covers the runtime's event, interop, reserved-queue, semaphore, check and
scheduler tests, and the lanes runtime_lane::submission_checks, events, event_round_trips,
command_queues and failed_commits. Caught with 8 and 4 fills of 64 MiB (plain), and 8 and 4
(shared).
Negative control: `landing_waits` without the skip (the old hold). The new test failed with "at
commit false: a head awaited its checks' signals", left 2, right 0. The shared test still
passed. Restored and touched.
(cherry picked from commit 3751927c29cee4a1dcbeb9786120245119a328a1)