Files
metal2vulkan/docs
Anees Iqbal bbf86acd0e The encoder trail names each execution's GPU form, and its line reads the form's scratch while pending
The 3090 hang's rerun (its trail line, read in place) named a pass whose two executions of
indirect commands, both through ranges a buffer holds, carried no host-step note: commit recorded
them for good in their merged GPU form (render/executions/gpu.rs), where the trail noted nothing,
so the line could not tell what the GPU read.

encoder_trail.rs:
- GpuForm: an execution's GPU form, its shape (recorded at commit or by its host step, merged or a
  draw per command, indexed, primitive type, the commands its preprocess runs over and from where,
  and the range buffer's offset), with its scratch region, layout and the command buffer's status
  words.
- Named: a part's (and a batch's) trail text with the GPU forms its executions took; the line's
  front batch is described with each form's scratch read now: the range the GPU copied, the
  merged draw's two VkDrawIndirectCommands, the commands whose arguments draw, their vertices or
  indices times instances and the most of them (its index entry where indexed), and the status
  words. The last-completed batch keeps its text alone.
- Step carries forms through a host step; commit's recording of each segment runs under a Step of
  its own (CommandBuffer::noting_forms), whose forms alone it keeps, joined to the part that holds
  the segment (State::trail_forms).

upload.rs: Upload::glimpse, volatile u32 reads of a region of the host-coherent chunk mapping,
read-only, no lock, no wait. completion.rs: the line's names are taken under the pending lock and
formatted (and the scratch read) after it. Off, nothing changes: no note is made.

Test: tests::trail_gpu_forms (device): four CPU-written triangle commands through a range buffer
of [1, 2], recorded at commit merged; after completion the form reads the range 1+2, the merged
draws [2147483646 x 0; 48 x 1 from vertex 2^31], 2 drawing arguments (7x2, 12x3), the most
command 2's, no fault.
2026-11-12 23:03:44 -08:00
..