What: a round of the queue-switch check now submits an opening first, on its first VkQueue:
the check's scratch buffer (4 MiB, device-local where the buffer takes it) filled `repeats` times,
each fill after a barrier on the ones before, signalling the gate timeline as it completes. The
round's two timestamp batches wait for that value, as before, so the GPU still holds both before
it runs either. The host no longer signals the gate (no vkSignalSemaphore). After the last
submission the check reads the gate: a round whose gate had already opened is late, counts for
nothing in the medians, and doubles the openings' repeats (up to 1024). Each submission of a held
round signals its own fence (three now), and the held step takes the loader word from before the
first submission.
Why: the old round submitted its first batch waiting on the GPU for a gate the host signalled
only after the second batch's vkQueueSubmit returned. On the RTX 5080 Laptop GPU (NVIDIA
615.71.09) beside the runtime suite, a gdb stack of the hung recorder_slots test showed the test
thread in another device's vkDestroyDevice and the check's thread in its round's second
vkQueueSubmit, the first batch waiting for the host's signal: neither returned (the test timed out
at 1201 s). The dma-buf leak probe's hang ("a buffer's making for 150 s") ended with the exit
waiting on the same submission section (queue_switch_check.rs:542 at 43d2308170). With the gate
opened by a submission made before any batch waits for it, every batch the check submits
completes with no further call of the check's thread.
The between hook of the device tests now holds a round after its opening and first batch, before
its second batch (tests::device_recovery, tests::queue_switch_gate). tests::queue_share_device
prints the check's late rounds (a test-only count).
Verification: not yet run at this commit; the queue_switch_gate test before and after this
commit, the queue-switch device tests and the three 5080 regression tests follow on the 5080 and
a 3090.