Files
reims-vgpu/docs
Anees Iqbal 415d453172 🆕 Name the guest's work in each command buffer lost in flight
The 3090's fault at job 60124 left no named cause: at a loss, the rt
platform wrote one line naming the GPU, the Vulkan call and its result,
and nothing of the work that was on the GPU.

Each command buffer rt ends as in flight at its device's loss now writes a
line after the device's, naming the guest's command buffer by its object
id and the object ids of the first compute and the first render pipeline
state its encoders set, or none; a command buffer of the host's own says
so. A command buffer cut in parts writes one line however many of its parts
are lost. The first 8 write theirs, the next one that the rest are counted
only, and each is counted, rt-device-lost-in-flight.

The record is the cheapest that holds them. The decoder makes the guest's
names for a command buffer's work once, at its begin, and hands them to the
platform before any encoder (CommandBuffer::names_work, a no-op by default
that makes no Metal call), which keeps them on the command buffer and each
part cut from it. A walk keeps its first pipeline state of each kind in a
cell, read at each set, and notes them in the names with relaxed stores
before each commit of what it walked: a cut, a dealt chunk's commit, which
notes its chunks' firsts in their order, and the last commit. Nothing per
draw, and nothing reaches the guest: the line is a diagnostic.
2026-11-20 17:57:10 -08:00
..