Files
reims-vgpu/docs
Anees Iqbal ba069c4c0b ✅ Run a released state's program while a buffer lives
metal2vulkan v0.2.0 (257bdd7d14, RUNTIME 2319) keeps the program of each
freed pipeline state ID's last holder while an indirect command buffer of
the device lives. So a command a kernel encodes naming a state released
before the write, its ID taken by no other state, now runs the released
state's program, unannounced, and its command buffer completes. That is
the M3 Max's and the UHD 630's answer; the Radeon Pro 5300M fails the
command buffer with a timeout (dgpu-oracle.md Q43). The Macs differ, so
the runtime's answer is inside the contract. Before the pin, the command
ran nothing and the runtime relayed `released-command-state`.

released_command_states_are_relayed_by_default expected the old answer
and failed on every GPU at the new pin: the M3 Max, the Radeon 780M and
the RTX 2080 (m3-max-31882, 31883, 31850, 31891). The RTX 3090 pass it was
set against (m3-max-31685) ran ccdc018fc, before the pin moved.

The runtime still relays a state released while no indirect command
buffer of the device lived, and one past its ID's last four holders: the
command runs nothing. The test now makes its buffer after the release, to
reach that case, and keeps every check: the command buffer completes, the
command runs nothing, the kind is relayed once, and the device goes on.
a_state_released_while_a_buffer_lives_runs_where_a_kernel_names_it holds
the new answer: the buffer is made before the release, the program runs,
the command buffer completes, and nothing is relayed.

answer.rs's DIES entry for ReleasedCommandState and Q43's account of our
stack now say what the runtime does at d9236a8a11. A record a kernel
wrote naming an ID the CPU set, which another state then took, runs that
state, as on the M3 Max and the 5300M. Before the pin it ran the CPU's
state and was relayed.
2026-11-15 06:02:35 -08:00
..