Under the write routes a write use of an indirect command buffer lets the GPU write its records
only beside a state that may encode indirect commands. Five lanes made a buffer resident for
writing with no state, to reach the host step or the GPU-alone form: dispatch_executions'
`writable`, render_resident_writes, buffer_texture_renders' `Writer`, render_merged_executions'
run without a kernel, and topology_classes' GPU-written execution.
`indirect_host_steps::encoding_state_set` sets `icb_replay_encode`'s state, made without
`supportIndirectCommandBuffers` so no record names it, in an encoder of its own that runs
nothing. Each of those lanes calls it before its write use. Because the state is set in another
encoder, what the records may hold gains nothing of it (`command_writes`), so each lane's path is
the one it took before.
Both sides of the contract are pinned:
- The flag test, renamed the_gpu_written_flag_is_set_by_a_write_use_beside_an_encoding_state_or_a_blit_into_it,
finds the flag clear after these, each still clear once its command buffer completed, with one
unmarked residency counted per commit:
- a read use beside an encoding state;
- a write use alone;
- a write use beside states that cannot encode (`icb_replay_template`'s).
- It finds the flag set at the call that completes the route:
- an encoding state, then a write use;
- a write use, then an encoding state;
- a read-and-write use;
- a state set in a later encoder of the command buffer;
- a blit copy or reset, as before.
- topology_classes adds a write use with no encoding state. Its execution is recorded at the
commit and announced there, as one of a buffer made resident for nothing.
Verified with the commit before this one (debug, --cfg m2v_gpu, this M3 Max on MoltenVK): the 39
lane modules that execute indirect command buffers, 479 tests, all pass; clippy -D warnings of the
validation crate, all targets and features, under --cfg m2v_gpu.
(cherry picked from commit 4bdc9850a21dbf0f69416e527b77b6e03aae5e65)
(cherry picked from commit 28623bca3ae5338cce09e46accafc80e3fe74c8f)
(cherry picked from commit b5fc188d9365f3a06d0c05404977d6c7750fb152)