gpu/queue,resource,device: support 2 MiB page mappings, RegisterPagePool2, and console queue/device slots #4366

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

@⁠TheOriginalF on GitHub · 2026-11-30 19:21 UTC · original
TheOriginalF:feat/2mb-page-mappings-and-queue-slots → main · +265 −46 · 3 files · 1 commits · open

What it changes

  • crates/victory-gpu/src/queue.rs:
    • Adds PAGE_2M (2 MiB) and FLAG_2MB_PAGES support across page_size(), remapped_spans(), and expand_batches().
    • Implements signal_x, invalidate_graphics_tlb_x, kickoff_x, set_hdr_tone_mapper_x, copy_page_mappings_single, and clear_page_mappings and wires queue slots 23, 24, 25, 27, 28, 31 + unit test.
  • crates/victory-gpu/src/resource.rs:
    • Adds register_page_pool_with and register_page_pool2 enforcing 2 MiB alignment when FLAG_2MB_PAGES is set + unit test.
  • crates/victory-gpu/src/device.rs:
    • Adds resident_noop and wires device slots f[34] (MakeResident), f[35] (Evict), f[44] (CreatePlacedResourceX), and f[120] (RegisterPagePool2X), updating device_slots_are_where_the_console_puts_them.

How it was tested

  • Test system:
    • CPU: AMD Ryzen 9 5950X (Corsair iCUE H150i RGB Pro XT)
    • GPU: Palit GeForce RTX 4090 GameRock OC (SM 6.8)
    • Motherboard: ASUS ROG Strix X570-E Gaming
    • RAM: Corsair Vengeance RGB Pro 32GB (2x16GB @ 3600MHz)
    • PSU: Corsair RM850x (850W)
    • Storage: Corsair MP600 2TB NVMe Gen4 + Seagate Barracuda 2TB HDD
  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): Palit GeForce RTX 4090 GameRock OC (SM 6.8), Series S (--console series-s --execute), no DLSS / no frame generation, default software RT path, cache-pareto
  • Before: baseline.log (84bd61e2, 503.0 s): 0 errors; warm GPU card-meter (title >= 10 ms, n=319) 26.90 ms avg (last 25: 20.50 ms)
  • After: all-prs.log (combined branch over 84bd61e2, 430.5 s): 0 errors, 0 missing-slot warnings; warm GPU card-meter (title >= 10 ms, n=358) 22.81 ms avg (last 25: 21.34 ms) — no regressions
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A
  • cargo test passed for the crates it touches: yes (queue::tests -- --test-threads=1 — 19 passed; device_slots_are_where_the_console_puts_them — 1 passed; register_page_pool2_enforces_2m_alignment_when_flag_1_is_set — 1 passed; cargo clippy — 0 new warnings; xtask policy --staged — ok)

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: minor adjacent-line overlap in device.rs with my sibling PR feat/list-fill-barrier-sampler2-hwconfig (both keep their own functions above FUNCTIONS)
**@⁠TheOriginalF** on GitHub · 2026-11-30 19:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4365) `TheOriginalF:feat/2mb-page-mappings-and-queue-slots` → `main` · +265 −46 · 3 files · 1 commits · open ## What it changes - `crates/victory-gpu/src/queue.rs`: - Adds `PAGE_2M` (2 MiB) and `FLAG_2MB_PAGES` support across `page_size()`, `remapped_spans()`, and `expand_batches()`. - Implements `signal_x`, `invalidate_graphics_tlb_x`, `kickoff_x`, `set_hdr_tone_mapper_x`, `copy_page_mappings_single`, and `clear_page_mappings` and wires queue slots `23, 24, 25, 27, 28, 31` + unit test. - `crates/victory-gpu/src/resource.rs`: - Adds `register_page_pool_with` and `register_page_pool2` enforcing 2 MiB alignment when `FLAG_2MB_PAGES` is set + unit test. - `crates/victory-gpu/src/device.rs`: - Adds `resident_noop` and wires device slots `f[34]` (`MakeResident`), `f[35]` (`Evict`), `f[44]` (`CreatePlacedResourceX`), and `f[120]` (`RegisterPagePool2X`), updating `device_slots_are_where_the_console_puts_them`. ## How it was tested - Test system: - CPU: AMD Ryzen 9 5950X (Corsair iCUE H150i RGB Pro XT) - GPU: Palit GeForce RTX 4090 GameRock OC (SM 6.8) - Motherboard: ASUS ROG Strix X570-E Gaming - RAM: Corsair Vengeance RGB Pro 32GB (2x16GB @ 3600MHz) - PSU: Corsair RM850x (850W) - Storage: Corsair MP600 2TB NVMe Gen4 + Seagate Barracuda 2TB HDD - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): Palit GeForce RTX 4090 GameRock OC (SM 6.8), Series S (`--console series-s --execute`), no DLSS / no frame generation, default software RT path, `cache-pareto` - Before: `baseline.log` (`84bd61e2`, 503.0 s): 0 errors; warm GPU card-meter (`title >= 10 ms`, n=319) 26.90 ms avg (last 25: 20.50 ms) - After: `all-prs.log` (combined branch over `84bd61e2`, 430.5 s): 0 errors, 0 missing-slot warnings; warm GPU card-meter (`title >= 10 ms`, n=358) 22.81 ms avg (last 25: 21.34 ms) — no regressions - For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A - `cargo test` passed for the crates it touches: yes (`queue::tests -- --test-threads=1` — 19 passed; `device_slots_are_where_the_console_puts_them` — 1 passed; `register_page_pool2_enforces_2m_alignment_when_flag_1_is_set` — 1 passed; `cargo clippy` — 0 new warnings; `xtask policy --staged` — ok) ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: minor adjacent-line overlap in `device.rs` with my sibling PR `feat/list-fill-barrier-sampler2-hwconfig` (both keep their own functions above `FUNCTIONS`)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 19:22:44 +00:00
github-bot force-pushed github-bot/gh-4365 from 2c5cedcca0 to 98522230d3 2026-12-01 01:30:27 +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/4366/head:github-bot/gh-4365'
git switch 'github-bot/gh-4365'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4365'
git switch 'github-bot/gh-4365'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4365'
git switch 'github-bot/gh-4365'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4365'
git switch 'main'
git merge --squash 'github-bot/gh-4365'
git switch 'main'
git merge --ff-only 'github-bot/gh-4365'
git switch 'main'
git merge 'github-bot/gh-4365'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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