Resolve cross-page shader accesses against both guest mappings #320
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/gamingwithhomie--larp!320
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/320/head"
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?
@erdtreefaithful on GitHub · 2026-12-05 23:07 UTC · original
erdtreefaithful:feature/split-cross-page-shader-accesses→main· +997 −39 · 7 files · 1 commits · merged 2026-12-05 23:10 UTCResolve cross-page shader accesses against both guest mappings
Problem
A single shader instruction can access several words across two guest pages backed by different host UAVs. The current translation chooses the view for the first word and uses it for the continuation. Later words can read unrelated values or lose a store.
Changes
Split aligned multiword global loads and stores, and scalar loads, at 64 KiB guest page boundaries. Resolve the continuation with the full guest address and retain vector operations for groups that fit within one page. Preserve lane masking and missing-page reporting. Translated shaders can read and update structures that straddle two mappings, including at a carry into the high address word. Ordinary accesses within one page retain their existing vector path.
Note: tested on rtx 5080 only