Files
VIctory/crates
T
MarvisandClaude Opus 5.5 ec9e750eb7 GPU: what a submission that missed title memory withheld leaves the copies at once
What lists using title memory write while the frame withholds stays in the
host copies until the frame's end: through the page table, through root
views (byte for byte) and through marked views. When a list of the
submission read or wrote memory with no copy, those results are garbage
computed from zeros (BVH builder nodes: +-inf bounds, 0xffffffff, rising u16
pairs), and later submissions of the same frame read them from the copies:
in run shards20 the meshlet culling read such bytes in its per-batch meshlet
buffers (stale copies with no title-side event after their take; 95.59 % of
the batches walked equal to title memory). Now what such a submission
withheld counts as changed in every buffer copy holding it right after it
completes (`drop_withheld`, which takes the place of `drop_at_frame_end`),
so the next submission's refresh takes it from title memory again. What
submissions that missed nothing withheld keeps the frame-end retake.

Run shards21 (29210929 + the page-table part alone + branch-only
diagnostics, same listing as shards20): one list per world frame wrote
through the page table, every one missed and was retaken at once (34-19,446
pages); stale copies written through the page table are gone, 98.12 % of
13,509 batches walked equal title memory. Every sampled stale batch left
was last written through a declared, unmarked view with no retake after it
(the builder's root UAVs, which the page-table path leaves to the
byte-for-byte path), hence the root and marked views here too.

Test: memory::tests::a_submission_that_missed_leaves_the_copies_at_once
(a write through the page table beside a miss; fails before the change: the
next submission reads the write instead of title memory's bytes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ec9e750eb7 · 2026-11-25 10:44:44 +01:00
History
..