Preserve shader pages covered by contiguous pool mappings #661

Open
github-bot wants to merge 1 commit from github-bot/gh-657 into main AGit
Owner

@⁠fruvs on GitHub · 2026-11-29 22:30 UTC · original
fruvs:codex/native-fragmented-page-table → main · +61 −4 · 3 files · 1 commits · draft

What this changes

Refs #660

Coalesce adjacent native page-table mappings when both their title addresses and their offsets within the same backing pool are contiguous. This lets a 64 KiB shader page span several smaller mappings. A hole, a different backing pool, or a discontinuous pool offset keeps the page unmapped.

How it was tested

  • On an M5 Pro with Metal, the synthetic computed-address dispatch returned zero before the fix and all expected values after it. Removing one fragment made the next dispatch observe the hole.
  • The page-table test checks continuous backing, an offset jump, and a pool change.
  • Native renderer tests passed on the upstream base with this patch (331 passed, 6 ignored). Asset policy passed.
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings with the pinned Rust 1.98.1.
  • The broader macOS release suite's unordered-access-clear function-pointer assertion also fails on pristine upstream main. The Rosetta suite was outside this Metal validation. Game replay is pending.

Checklist

  • No game files, game code, disassembly listings or SDK files are included.
  • This does not change assumptions about undocumented console behavior.
  • This adds no runtime diagnostic.
**@⁠fruvs** on GitHub · 2026-11-29 22:30 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/657) `fruvs:codex/native-fragmented-page-table` → `main` · +61 −4 · 3 files · 1 commits · draft ## What this changes Refs #660 Coalesce adjacent native page-table mappings when both their title addresses and their offsets within the same backing pool are contiguous. This lets a 64 KiB shader page span several smaller mappings. A hole, a different backing pool, or a discontinuous pool offset keeps the page unmapped. ## How it was tested - On an M5 Pro with Metal, the synthetic computed-address dispatch returned zero before the fix and all expected values after it. Removing one fragment made the next dispatch observe the hole. - The page-table test checks continuous backing, an offset jump, and a pool change. - Native renderer tests passed on the upstream base with this patch (331 passed, 6 ignored). Asset policy passed. - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` with the pinned Rust 1.98.1. - The broader macOS release suite's unordered-access-clear function-pointer assertion also fails on pristine upstream main. The Rosetta suite was outside this Metal validation. Game replay is pending. ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included. - [x] This does not change assumptions about undocumented console behavior. - [x] This adds no runtime diagnostic.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 22:32:21 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/661/head:github-bot/gh-657'
git switch 'github-bot/gh-657'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-657'
git switch 'github-bot/gh-657'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-657'
git switch 'github-bot/gh-657'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-657'
git switch 'main'
git merge --squash 'github-bot/gh-657'
git switch 'main'
git merge --ff-only 'github-bot/gh-657'
git switch 'main'
git merge 'github-bot/gh-657'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.