What: a new owned fixture, icb_routed_writes, whose kernels write command 0 of an indirect command
buffer: a render command with its state taken from the argument buffer (irw_encode_draw), a
render command of a buffer that inherits the encoder's state, a point at the target's centre
beside the CPU's triangle in command 1 (irw_encode_point), and a compute command with its state
from the argument buffer (irw_encode_dispatch). A Metal probe
(crates/metal2vulkan-conformance/probes/icb_routed_writes.m) and a lane
(runtime_lane::write_routes) run the same four shapes: the buffer made resident for writing in
the kernel's encoder, only in an encoder after it, only in one before it, and nowhere; a later
encoder of the same command buffer executes the buffer.
Why: the marks of a buffer the GPU may write are the command buffer's, while what its records may
hold was gathered per encoder. The lane asks whether an execution runs what the GPU wrote, with the
right state and pixels, wherever the command buffer paired the residency with the writer.
Metal's answers (the probe, M3 Max, macOS 27.0.1, validation off, verified): in the kernel's
encoder, after it and before it, all three kinds ran the kernel's command (green, green, words
0x100 to 0x103). Nowhere: the render command and the point did not run (the CPU's records: red),
the compute command did. docs/API.md records that last difference: no encoder of the command
buffer made the buffer resident for writing, which Metal's contract asks of a function's write,
and the runtime runs the CPU's records there (APART in the lane).
How verified: the lane, debug with --cfg m2v_gpu on the M3 Max under MoltenVK, fails at this
commit, which is the bug the next commit fixes: [(Same, [true, true, true]), (After, [true, false,
true]), (Before, [true, false, true]), (Nowhere, [false, false, false])] against Metal's (with the
compute command apart), the inherited state's executions taking 2, 0, 0 and 0 host steps: with the
residency in another encoder than the kernel's, the GPU alone ran the kernel's point as a draw of
the CPU's triangles, which drew nothing. The render command and the compute command ran right in
every shape.
(cherry picked from commit 25134688d13d1abedab5e3ee5e1ff4c9db442a90)
(cherry picked from commit ba7f047a7987a63a9e1f6fd78ae7093f27326e55)