From 855eb861473c225ab2e7aaa7adbf42eded51a176 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 11:09:47 -0800 Subject: [PATCH] Runtime README: a chain's links past the device's room go as earlier ones complete The queue section said a signalling command buffer is staged once its queue has room; the room is the device's. Of a chain of command buffers each waiting for the one before it's signal, the links past the device's room go as earlier ones complete (the shared event chain test holds three links, IN_FLIGHT, all scheduled before the first runs). Docs only. --- crates/metal2vulkan-runtime/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index c5122cf50..19e487363 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -1836,9 +1836,11 @@ made, with no lock, and never rewritten for layouts. `CommandQueue::send_now`, the hint for a wait the runtime does not see), or at teardown. Waiting for a place in the queue sends nothing. A segment that signals an event ends its group, which goes at once as it is staged, and so does a presenting command buffer's last (see "Presenting"); so a - command buffer that signals an event, in any segment, is staged only once its queue has room for - it, as one held for room behind it is, and a wait for its signal waits with it, while a - presenting one has its queue go at once, through to it. The + command buffer that signals an event, in any segment, is staged only once the device has room + for it, as one held for room behind it is, and a wait for its signal waits with it, while a + presenting one has its queue go at once, through to it. So of a chain of command buffers, each + waiting for the signal of the one before it, the links past the device's room go as earlier + ones complete. The driver runs a submission's command buffers as one kernel job, which a job timeout ends as a whole (Linux's amdgpu ends a job past its timeout and resets the ring), so a group is bounded by its expected GPU run: a queue's expected run follows its command buffers'