gpu: scale the page budgets with the card's memory (upstream 6261a70) #72

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

@⁠Kal0s-design on GitHub · 2026-12-05 20:06 UTC · original
Kal0s-design:port/small-card-budgets → main · +115 −9 · 1 files · 1 commits · open

From upstream ReVIctory (6261a70, author kept), applied without conflicts. Three page budgets were fixed at a big card's limits and now follow the card's memory, which matters for the 8 GiB RDNA 3 cards (RX 7600 class) this fork is for.

  • Pages of title memory held by address: 512 MiB up to 6 GiB of card memory, 1,024 MiB up to 9 GiB, else 3 GiB as before (VICTORY_RT_MEMORY_MB overrides, 256 to 3,072 MiB).
  • Free pages a list needs: 256 up to 9 GiB, else 1,024 as before.
  • Pages held from faults: 128 MiB up to 6 GiB, 256 MiB up to 9 GiB, else 512 MiB (VICTORY_BVH_FAULTS_ALL overrides).

One thing to look at before merging. The last one is a change on big cards too, not just small ones. Above 9 GiB it goes from 128 MiB to 512 MiB, as in the fork upstream took it from, so a 7900-class card holds more pages from faults than it does today, and the switch is how to get the old 128 MiB back. If you'd rather leave big cards exactly as they are I can make that tier 128 MiB here.

The render targets' kept room already followed the card (the budget over four in targets_room_kept), so that half of the original change was in main already.

Clippy -D warnings is clean in both of the Lint workflow's runs and victory-gpu passes (703, 44 ignored as on main). I'm on one NVIDIA desktop card above 9 GiB, so the small-card tiers aren't something I can run here.

AI-assisted: yes

🤖 Generated with Claude Code

**@⁠Kal0s-design** on GitHub · 2026-12-05 20:06 UTC · [original](https://github.com/VGLALALA/ReVictory-RDNA3/pull/72) `Kal0s-design:port/small-card-budgets` → `main` · +115 −9 · 1 files · 1 commits · open From upstream ReVIctory (6261a70, author kept), applied without conflicts. Three page budgets were fixed at a big card's limits and now follow the card's memory, which matters for the 8 GiB RDNA 3 cards (RX 7600 class) this fork is for. - Pages of title memory held by address: 512 MiB up to 6 GiB of card memory, 1,024 MiB up to 9 GiB, else 3 GiB as before (VICTORY_RT_MEMORY_MB overrides, 256 to 3,072 MiB). - Free pages a list needs: 256 up to 9 GiB, else 1,024 as before. - Pages held from faults: 128 MiB up to 6 GiB, 256 MiB up to 9 GiB, else 512 MiB (VICTORY_BVH_FAULTS_ALL overrides). One thing to look at before merging. The last one is a change on big cards too, not just small ones. Above 9 GiB it goes from 128 MiB to 512 MiB, as in the fork upstream took it from, so a 7900-class card holds more pages from faults than it does today, and the switch is how to get the old 128 MiB back. If you'd rather leave big cards exactly as they are I can make that tier 128 MiB here. The render targets' kept room already followed the card (the budget over four in targets_room_kept), so that half of the original change was in main already. Clippy -D warnings is clean in both of the Lint workflow's runs and victory-gpu passes (703, 44 ignored as on main). I'm on one NVIDIA desktop card above 9 GiB, so the small-card tiers aren't something I can run here. AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The pages of title memory by address, the free pages a list needs, and
the pages the arena holds from faults were fixed at a big card's limits
(3 GiB, 1,024 pages, 128 MiB). They now follow the card, as MiniVI
found for 8 GiB cards:

- pages held: 512 MiB up to 6 GiB of card memory, 1,024 MiB up to
  9 GiB, else 3 GiB (VICTORY_RT_MEMORY_MB overrides, 256-3,072 MiB);
- free pages for a list: 256 up to 9 GiB, else 1,024;
- pages held from faults: 128 MiB up to 6 GiB, 256 MiB up to 9 GiB,
  else 512 MiB (VICTORY_BVH_FAULTS_ALL overrides). On a card above
  9 GiB that is more than the 128 MiB it was, as in the fork: the
  switch takes it back.

The render targets' kept room was already the card's budget over four
(resource.rs targets_room_kept), with the settle decay, so that half of
the fork's change was in main.

Ported from MiniVI's most_pages_for / spare_pages_for / fault_pages_for.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 20:09:25 +00:00
github-bot force-pushed github-bot/gh-72 from ac66548d26 to 2e6a309bcd 2026-12-05 21:27:40 +00:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/72/head:github-bot/gh-72'
git switch 'github-bot/gh-72'

Merge

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