Files
reims-vgpu/crates
Anees IqbalandClaude Opus 5 95ecbb0f95 observe: the store's destination and the presented plane's pages were both known and never emitted beside each other
Component: reims-vgpu Vulkan engine (outstanding-write ledger) and the scanout
present witness. Pathway: x86 macOS / Linux Vulkan, rail macos-15. Observation
only; no guest-visible behaviour changes and no execution path altered.

Session 10b established, at n=3, that the flat-white desktop field is neither of
the two readings six sessions were spent choosing between: the guest composites
into the presented plane at 14-195 draws per heartbeat for the entire white
interval, and 409 stores publish into it, while its guest pages stay uniform
0xff. What it asked for next was one comparison -- the guest-physical pages the
Store wrote against the pages the present sampled. Both numbers were already
inside this device and neither was emitted beside the other.

`present_field_witness` gains `write_reach=` and the presented mapping's page
count, first and last page. The witness reads guest pages without settling, and
that is deliberate: settling there would make the instrument cause the
visibility it is trying to observe. But it also means a uniform field has been
three findings wearing one number.

  Overlap   a writeback is in flight into these very pages, so the bytes read
            are pre-write bytes and the field says nothing about what the guest
            composited. The question moves to whether whatever presents this
            plane settles before reading it.
  Disjoint  nothing outstanding lands here, so the stores this boot records are
            landing in another page set entirely, and publish and present
            disagree about which pages the plane is.
  Unnamed   the ledger overflowed or raced and cannot say -- counted apart so it
            cannot be read as Disjoint.

Three different repairs, and no record separated them.

`store_destination` is the other half, emitted from
`record_guest_write_footprint_debt` -- the function that arms the ledger -- so
the destination named and the destination armed cannot drift. It reports on a
change of allocation identity rather than per store: this rail records hundreds
of stores a second into a handful of surfaces, so a per-store line would be a
flood repeating one fact, and the destination is what the question is about.

Identity is `same_allocation` (Arc pointer equality), which is the key the
ledger already deduplicates on, not the page values. A recycled page list
describes a later allocation, so equal addresses would suppress a real
destination change -- the one thing this record must not do. `runs` and
`page_size` travel with it because a scattered destination and a contiguous one
of the same length are not the same footprint.

Test: a_recycled_page_list_is_a_new_destination_and_a_retained_one_is_not pins
all four arms -- a retained clone is the same destination, an identical page list
rebuilt is not, a different page set is not, and the first store of a process has
nothing to be the same as. The suppression rule is split into
`store_destination_changed` so it is stated as a test rather than inferred from
the shape of a log.

Verified: cargo fmt --all and --check; all three clippy arms with -D warnings
(aarch64-apple-darwin/backend-metal, host Vulkan, x86_64-unknown-linux-gnu
Vulkan); full backend-vulkan,host-window suite serially, 2407 passing, 0 failures.

Not verified: no boot carries either record yet, so no white-interval reach and
no store destination has been measured. Metal tests were not run; this host is
not Apple. No conformance battery was run -- the change emits OFF records and
alters no execution path.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-30 23:58:48 +03:00
..