Component: crates/reims-vgpu, plane draw census. Observation only.
Pathway: x86 macOS / Linux Vulkan. Rail: macos-15.
No guest-visible behavior changes. This adds two `store_routes` counters and the
per-plane state that joins them.
What could not be measured before. On rail macos-15 the desktop background comes
up flat white on about two boots in three. Every boot-total differential run
against that separates nothing -- across 24 boots that share one proven-identical
binary, a white boot and a painted one have the same typed reasons at the same
frequencies, the same `present_route` / `present_page_identity` /
`type11_store_route` payloads, the same five or six `Composite` mids and the same
page geometry. An exhaustive normalised diff of the guest's own logs, stack
samples, `procs`, `ioreg` and `system_profiler` output separates them either.
What is established: the guest issues the wallpaper draw on a white boot --
`plane_draw_multi_quad` 963 on a white boot against 734 on a painted one, more
and not fewer -- the presented plane's own guest pages hold uniform `0xff`, and
no door reports losing a seed (`load_seed_lost` 0, `present_unbacked` 0).
And, measured this session on three of three boots where it could be asked:
rebuilding the guest's wallpaper layer repairs the screen, while damaging the
desktop with pointer motion never does. That is the expected shape -- macOS
composites the background once and relies on it persisting -- and it says the
loss is of one draw's result, not of a texture and not of a damage notification.
boot zero-input pointer/dock desktop hover wallpaper rebuild
lb-w1 WHITE 211.40 AMBIG 196.90 AMBIG 196.83 PAINTED 115.68
lb-w3 WHITE 228.50 WHITE 214.00 WHITE 213.93 PAINTED 115.68
lb-w4 WHITE 233.48 WHITE 222.69 WHITE 222.61 PAINTED 122.26
So the remaining question is a join no record could make: **did the multi-quad
draw's Store publish for the plane it drew into?** A boot total cannot answer it,
because the same plane also takes hundreds of six-vertex draws that publish
normally, so the join has to be per plane and per draw shape.
What this adds. `PLANE_MULTIQUAD_PENDING` holds one bit per plane -- "the last
draw into it was the multi-quad one and nothing has published since". A
multi-quad draw into a full-screen mapped plane arms it;
`publish_surface_store`, which is the one place a Store becomes visible in a
plane's guest pages, disarms it and counts `plane_multiquad_published`. A plane
armed twice with no publish between counts `plane_multiquad_redrawn_unpublished`
once, because two lost draws are the same observation as one until something
publishes.
Bounded by the number of live planes, which is the guest's swap chain (five or
six); entries are removed on publish, so nothing accumulates.
Reading it: compare `plane_multiquad_published` against `plane_draw_multi_quad`
on a white boot and a painted one. Both are per-window `store_routes` values and
must be summed across the boot, never read as a maximum.
Cost: one extra uncontended mutex acquisition per draw into a mapped plane of at
least 1024x1024, alongside the ring lock that path already takes. It does not run
for ordinary draws.
Verification actually run: cargo fmt --all and --check; clippy -D warnings on all
three main arms (aarch64-apple-darwin backend-metal, host
backend-vulkan,host-window, x86_64-unknown-linux-gnu backend-vulkan,host-window);
the full reims-vgpu suite serially, 2302 passed / 0 failed / 1 ignored.
Not verified: no boot has yet been run with these counters, so the measurement
they exist for has not been taken. No conformance battery -- this changes no
guest-visible behavior and adds no branch a guest can reach.