draw: the boot the clear-values array owed, and what the zero does not cover

macos-15/x86/Vulkan, three rounds of the committed workload then a clean
SIGTERM: zero `FAIL` across 25 213 lines, 146 cadence windows all `busy=0` with
119 at `direct_frac=1.00`, `walk_records_render` 285 753 over 146 windows,
123 510 draws, first guest frame presented via rail resident.

119 of the 121 windows past the firmware phase, the same shape as the 86-of-88
and 139-of-141 the two rows above read. A change on the render-pass begin path
owes a live boot even when it is mechanically equivalent, and this is it.
`slate_source_stale` absent this time.

The row also records what the new structural-zero gate does *not* cover, because
a gate whose scope is only in the test body reads as broader than it is: the
measured draw binds no descriptors, and `Vec::with_capacity(0)` allocates
nothing. A draw that binds anything still builds a `Vec<BindingSig>` and clones
it into the pipeline key. That is the next piece of the same gate, and it is
named here so the zero is not read as covering it.

No code change. Register row only.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Anees IqbalandClaude Opus 5 committed 2026-09-03 18:54:45 +03:00
1 parent 8aa30037c0
commit 7f4e618d54
1 file changed
+1
+1
View File
@@ -201,3 +201,4 @@ claim.
| *(no register row — `a9a7d515`, the window reads no registry)* | `vm/boot-x86.sh --device reims-vgpu-pci --testing --rail macos-15` (x86 macOS guest, Linux/KVM host, Vulkan rail), host-driven workload (three rounds of launching and quitting five applications over ssh), then a clean SIGTERM teardown | **The host window's present path no longer touches the resident registry.** `begin_present`'s two `registry_get` calls are gone and with them the presenter's whole judgement of a resident: it takes the `WindowPresentResolution` the publish produced under the engine lock and checks one atomic stamp. This is what four commits of this session were for — the window thread can never hold a `&DeviceState` (the lock one comes behind is the drain's, held for a whole render tranche at 935-979 ms per exec packet), so the registry's move to the device needed the window to stop reading it rather than to read it more cheaply. Six `SlateReason` variants become two: `no_resident`, `content_not_ready`, `not_bgra` and `geom_mismatch` were the presenter judging what it had re-resolved, and are now decided by `resident_present_decision` a frame earlier and named there as `winpub_*` on the drain's route channel. **The boot: zero `FAIL` across 21 806 lines, 99 cadence windows all `busy=0`, 73 at `direct_frac=1.00` — every window past the 25 firmware ones and the one crossover, which is the same shape as the 97/123 and 97/122 the two boots before it read** — `slate_source_stale` absent, no `winpub_*` route fired at all, first guest frame presented via rail resident (same-device zero-copy), `walk_records_render` 275 577 and 176 642 draws, clean SIGTERM teardown. Replacement coverage for the four presenter-side classification tests that moved out from under: fn `the_publish_names_the_first_blocker_a_resident_carries` (the same ladder at its owner, plus the every-rung-failing case saying the coarsest wins), fn `each_publish_blocker_has_its_own_route_name` (each rung's `winpub_*` name, and that the accepting arm returns exactly `slot_window_resolution` of the slot it accepted at the epoch it read) and fn `a_declined_publish_vouches_for_nothing`. The seven divergence-census tests went with the census, which after this has nothing to compare. Nothing moved to `dead/`. |
| *(no register row — `13f9aa49`, the blit refusal carries its own reason)* | `vm/boot-x86.sh --device reims-vgpu-pci --testing --rail macos-15` (x86 macOS guest, Linux/KVM host, Vulkan rail), host-driven workload (`vm/drive-desktop.sh`, three rounds of launching and quitting five applications over ssh), then a clean SIGTERM teardown | Seam 6's disconnect list names `BLIT_FAIL_REASON` — "a thread-local carrying a reason the observation channel should carry" — and this is that item, closed. The rail's 177 checks collapse into six classes, so the specific cause had to travel somewhere; it travelled in a thread-local that `br` set, every command entry cleared, and `Refusal::refusal` read back on three unchecked assumptions (same thread, before any other write, at all). It also said nothing about the nineteen sites that never called `br` — `.ok_or(BlitStatus::Capacity)?` and `return Err(BlitStatus::GuestIo)` in the buffer↔texture aspect helpers — which reached the dispatch line as `blit_unattributed`. `BlitStatus` splits into `BlitFailure` (the six classes a caller branches on) and `BlitStatus::Failed { failure, reason }`, `br` is its only constructor, and a refusal with no reason is now unspellable; the nineteen did not compile until each named the check it had been discarding. **The boot: zero `FAIL` across 27 263 lines, 167 cadence windows all `busy=0` with 139 at `direct_frac=1.00`** — the 26 firmware windows with no guest frame plus two crossover windows (0.83, 0.90) account for the rest, the same shape as the 73-of-99 and 97-of-123 the boots before it read — `walk_records_render` 301 624 over 166 windows, 129 678 draws, first guest frame presented via rail resident, clean SIGTERM teardown and revert. **No blit refusal fired at all**, which is the honest reading of this boot: it says the change introduced none, not that the nineteen new slugs were exercised — a driven desktop does not refuse blits, and the nineteen are covered at their owner instead. One `slate_source_stale` episode, one frame, at `display_enable_mask 0xd -> 0xc`: the documented lawful case (the epoch moved between the publish's stamp and the present), reported here because the three rows above record it as absent and this boot is 167 windows against their 99. Replacement coverage: fn `a_refusal_cannot_be_spelled_without_the_check_that_fired` (which asserts the construction rather than the old `blit_unattributed` name, because there is no site left that can produce it), fn `a_refusal_names_which_of_the_collapsed_checks_fired`, and eleven copy/fill-executor tests that read the channel after the status now assert both in one `BlitStatus::Failed { .. }` literal — a stronger statement than the pair was, since it says the class and the check came from the same refusal, which is exactly what the thread-local could not promise. Nothing moved to `dead/`. |
| *(no register row — `e1a4af18` and `9b2470e0`, the publish submits what it vouches for)* | `vm/boot-x86.sh --device reims-vgpu-pci --testing --rail macos-15` (x86 macOS guest, Linux/KVM host, Vulkan rail), host-driven workload (`vm/drive-desktop.sh`, three rounds of launching and quitting five applications over ssh), then a clean SIGTERM teardown | The presenter's `pools.batch_flush` moves to `prepare_window_resident_present`. The flush had to be somewhere — `content_ready` is set when a draw *records* into a resident, so a resolution can name pixels that exist only in a command buffer nobody has ended — and the presenter was the wrong somewhere twice over: the batch is the drain's and the publish *is* the drain, so the window thread was submitting a whole tranche of guest work on the display's latency path; and a flush at present time also submits every draw recorded *after* the publish, so the frame reaching the screen was not the frame the publish vouched for. A flush failure declines by name (`winpub_batch_flush_failed`) and latches `note_device_lost_seen`, because this transaction holds the engine guard and no `ObjectCaches` and that order is fixed. **The boot: zero `FAIL` across 22 868 lines, 112 cadence windows all `busy=0` with 86 at `direct_frac=1.00`** — 24 firmware windows and two crossovers (0.83, 0.88) are the rest, so 86 of the 88 windows past the firmware phase, the same shape as the 139-of-167 the row above read — `walk_records_render` 291 960 over 111 windows, 127 344 draws, first guest frame presented via rail resident, clean SIGTERM teardown and revert. One `slate_source_stale` episode again. **The window thread's engine lock, which is the reading this change is actually about: median 4 acquisitions per second, median 155 µs held per second, median longest single hold 68 µs.** One outlier window at 902 ms total with a single 554 ms hold, which is the swapchain creation at startup and is named here so a later reader does not take it for a steady-state number. That is the floor the remaining work has to beat, and it is small — what is left in that hold is the blit recording and one registry write. `9b2470e0` is the doc that closes `00a52e81`'s open question about that write: it cannot move to the publish (which would promise a transition a `Busy` present never makes, and the lie is the *access*, not the layout, since a primary target and `transfer_read(false)` share `TRANSFER_SRC_OPTIMAL`) and it cannot be replaced by a restore after the blit (the layout comes back, the dependency does not — a guest colour write barriering from the restored `ColorWrite` names `COLOR_ATTACHMENT_OUTPUT` and does not wait for this blit's `TRANSFER` read). The barrier and the record of it are one action; the write leaves when the present becomes a transaction against the device that owns the registry. Replacement coverage: fn `the_window_publish_flushes_the_open_batch_before_it_vouches`, a device test whose assertion is ahead of the publish's own accept/decline, so a refactor that moved the flush behind the decision cannot pass on the accepting arm alone. Nothing moved to `dead/`. |
| *(no register row — `3e4276c5` and `8aa30037`, the live warm draw stops allocating)* | `vm/boot-x86.sh --device reims-vgpu-pci --testing --rail macos-15` (x86 macOS guest, Linux/KVM host, Vulkan rail), host-driven workload (`vm/drive-desktop.sh`, three rounds of launching and quitting five applications over ssh), then a clean SIGTERM teardown | "Heap allocations per steady-state draw" is a required value in the plan's structural-zero table. `reims-vgpu-core` had met it for the semantic model; nothing measured the live executor. Measured, a warm repeat draw took **1 trip, 16 bytes**, every run — all of it `exec::clear_values` returning a `Vec` whose first `push` allocated, on the overwhelmingly common draw of one colour target with no secondaries and no depth. It is a `ClearValues` array now and the answer is zero. Capacity is the wire's own bound (`1 + MAX_SECONDARY_ATTACH` is `PASS_MAX_COLOR_ATTACHMENTS`) plus depth, and overflow refuses under the same `SecondaryAttachmentCap` reason the pass-key path uses rather than truncating, because Vulkan indexes the array positionally and a short one gives a later attachment an earlier one's colour. **The boot, which is what a change on the render-pass begin path owes: zero `FAIL` across 25 213 lines, 146 cadence windows all `busy=0` with 119 at `direct_frac=1.00`** — 25 firmware windows and two crossovers (0.83, 0.91) are the rest, so 119 of the 121 past the firmware phase, the same shape as the 86-of-88 and 139-of-141 the two rows above read — `walk_records_render` 285 753 over 146 windows, 123 510 draws, first guest frame presented via rail resident, clean SIGTERM teardown and revert. `slate_source_stale` absent this time. **What the gate does not yet cover, said here rather than left for a reader to assume:** the measured shape binds no descriptors, and `Vec::with_capacity(0)` allocates nothing, so the zero is a statement about descriptor-free draws. A draw that binds anything still builds a `Vec<BindingSig>` and clones it into the pipeline key — at least two trips — and that is the next piece of the same gate. Replacement coverage: fn `a_warm_repeat_draw_does_not_enter_the_allocator` (which brackets a counter snapshot, asserting one `batch_joins` and no `batch_flushes` inside the measured region, because an early return allocates nothing too and would pass for the wrong reason) and fn `a_clear_array_past_the_attachment_bound_refuses_rather_than_truncating`. Nothing moved to `dead/`. |