Files
metal2vulkan/docs
Anees Iqbal 7dcde89ddb RUNTIME 2522: a head whose line signals what another queue's head awaits takes no turn
Under the default Fair queue turns, a later command buffer of a queue sharing a
VkQueue is held for its turn while its queue's earlier one is in flight. Where
that later one signals a value another queue's held head waits for, and the
earlier one waits on the GPU for a signal the program gives only once that
waiter is scheduled (a caller's reserved signal, Event::reserve_vk_signal), the
program waited for the watchdog, where Metal schedules them all at once.

Each look now first gathers the values the line heads wait for that no
submitted signal or host set reaches (EventShared::landing), and, only where
there are any, marks each turn-taking line's head by whether a batch of its
line signals such a value for another line (one read per command buffer).
Such a head takes no turn (scheduler/mod.rs mark_awaited_signals; Held
signals_awaited); once the signal went, its line takes turns again. The
awaited values live in State and are emptied after each look, so a look
allocates nothing. queue_turns.rs gains the "Awaited signals" rule and the
FAST-PATHS queue-turns row says it.

The lane test runtime_lane::events::a_signal_another_queue_waits_for_takes_no_turn_behind_a_gpu_wait
(queue B's first command buffer waits on the GPU for a reserved gate, its second signals W=1,
queue A's waiter waits for W=1; the gate opens once A's waiter left Committed) comes with it.

Verified (evwait lane, tip b77e692259 on fe3f09f569): m3-max-39516 (msi): clippy -D warnings
plain, --cfg m2v_gpu and --cfg m2v_cpu_icd 0, rustdoc -D warnings 0, runtime unit tests
queue_turns|unshared_hold|fast_paths|scheduler|order 222/222. The lane test's before/after
on the XTX (m3-max-39536) and PHOENIX follows on development; unverified there until then.
No new Degradation kind, WorkCounts field or public signature.
2026-11-16 23:42:39 -08:00
..