Memory: shaders reach title memory below 4 GiB (VICTORY_LOW_MEMORY, on; =0 off) (by lobomfz) #5067

Open
101Leafy wants to merge 1 commit from upstream-pr/5067 into main
101Leafy commented 2026-12-01 18:47:43 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-12-01T18:47:43Z.


Port of lobomfz's fix; lobomfz is the commit author.

The title's 32-bit memory lies below 4 GiB and is write-watched like the rest of its memory, but the shader memory directory turned every page under 4 GiB down. A structure or node there read zeros, and the walkers ran to their iteration limit.

Pages there are now taken like any other. possible() still refuses what is not committed or not write-watched title memory, which keeps out our heaps, stacks, and modules. place() goes through the same check for low pages.

VICTORY_LOW_MEMORY=0 keeps the old 4 GiB floor. cargo check -p victory-gpu is clean.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5592255640 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5067). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-12-01T18:47:43Z. --- Port of lobomfz's fix; lobomfz is the commit author. The title's 32-bit memory lies below 4 GiB and is write-watched like the rest of its memory, but the shader memory directory turned every page under 4 GiB down. A structure or node there read zeros, and the walkers ran to their iteration limit. Pages there are now taken like any other. `possible()` still refuses what is not committed or not write-watched title memory, which keeps out our heaps, stacks, and modules. `place()` goes through the same check for low pages. `VICTORY_LOW_MEMORY=0` keeps the old 4 GiB floor. `cargo check -p victory-gpu` is clean.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/5067:upstream-pr/5067'
git switch 'upstream-pr/5067'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/5067'
git switch 'upstream-pr/5067'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/5067'
git switch 'upstream-pr/5067'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/5067'
git switch 'main'
git merge --squash 'upstream-pr/5067'
git switch 'main'
git merge --ff-only 'upstream-pr/5067'
git switch 'main'
git merge 'upstream-pr/5067'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!5067
No description provided.