Mirror byte-written descriptors that cross a watch-page boundary #504
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!504
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-504"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Tristan1019-user on GitHub · 2026-12-02 20:13 UTC · original
Tristan1019-user:codex/descriptor-page-straddlers→main· +82 −12 · 1 files · 1 commits · openA descriptor can touch two dirty pages without lying wholly in either page job. Reproduced on current main in an isolated process: place a two-slot sampler heap eight bytes before a watch-page boundary, write a 16-byte sampler to slot zero, then sync. The host reports
(false,false)for the two slots; expected(true,false). This is deterministic without concurrent heap synchronization and is distinct from #481's intermittent test ordering.Form the jobs in whole heap records, deduplicate overlapping dirty intervals, and put a cross-page record in its own safe read. Keep current main's adaptive title-share growth and past-share reporting; the actual mirror stays within the host share. No change to guest descriptor sizes or shader caches.
Verified on an RTX 5080:
cargo test --locked -p victory-gpu --lib dirty_sampler_across_two_watch_pages_is_mirrored -- --ignored --test-threads=1failed on base7dbcdcb1and passed after this change. The neighboring slot stayed unset. Regular descriptor tests: 13 passed, including 16/32-byte strides, overlapping/out-of-order dirty spans, and the existing dynamic-slot boundary check. No claim about a specific visual artifact or FPS.AI-assisted with Codex.
@kwaadrat on GitHub · 2026-12-02 21:18 UTC · original · reviewed
Clean fix for page-straddling descriptors:
sync_record_partsaligns batches tochanged_slots, usesnextto assign each touched slot to at most one worker, and isolates any record crossing awatch::PAGEboundary ((left as u64 / step).max(1)) so a failed read on the trailing page cannot hide neighboring slots.continuewhenfirst_slot >= mirrored_countalso fixes the fall-through that previously readrecordspastmirrored_count.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.