Resolve cross-page shader accesses against both guest mappings #320

Manually merged
github merged 1 commit from gh-pr/320/head into gh-pr/320/base 2026-12-06 00:58:16 +00:00
Owner

@⁠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 UTC

Resolve 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

**@⁠erdtreefaithful** on GitHub · 2026-12-05 23:07 UTC · [original](https://github.com/gamingwithhomie/larp/pull/320) `erdtreefaithful:feature/split-cross-page-shader-accesses` → `main` · +997 −39 · 7 files · 1 commits · merged 2026-12-05 23:10 UTC # Resolve 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 23:12:26 +00:00
github-bot referenced this pull request from a commit 2026-12-06 00:57:59 +00:00
github manually merged commit 9150c78a55 into gh-pr/320/base 2026-12-06 00:58:16 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.