gpu,shader: add command-list fill/barrier/stencil methods, CreateSampler2, GpuHardwareConfiguration, and sampler mip LOD clamp #4369

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

@⁠TheOriginalF on GitHub · 2026-11-30 19:23 UTC · original
TheOriginalF:feat/list-fill-barrier-sampler2-hwconfig → main · +313 −6 · 6 files · 1 commits · open

What it changes

  • crates/victory-gpu/src/list.rs & crates/victory-gpu/src/list/thin.rs:
    • Adds write_pattern, fill_memory, fill32, fill64, fill128, fill128_words_4, flush_pipeline, write32_2, write64_2, barrier_x, and front_and_back_stencil_ref.
    • Wires MORE_METHODS, NEWER_METHODS, thin-list FILL32/64/128_WORDS & 5 wrappers (MINE 55 -> 62), and f[147] for newer list methods + headless and slot-layout unit tests.
  • crates/victory-gpu/src/pipeline.rs: adds create_graphics_x at device slot f[60] (0x1e0).
  • crates/victory-gpu/src/descriptor.rs: adds create_sampler2 at device slot f[130] (0x410).
  • crates/victory-gpu/src/device.rs: adds GpuHardwareConfiguration and gpu_hardware_configuration (f[68], 0x220) reporting Series X (1.825 GHz, v5) / Series S (1.565 GHz, v4) + unit test.
  • crates/victory-shader/src/emit/sampler.rs: clamps max_lod with max_lod.max(min_lod) so inverted LOD bounds do not emit invalid sampler descriptors + unit test.

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, 0 failed pipelines; warm gameplay 24.50 med fps (40.80 ms med)
  • After: all-prs.log (combined branch over 84bd61e2, 430.5 s): 0 errors, 0 failed pipelines; warm gameplay 24.10 med fps (41.50 ms med), cutscenes 30.00 med fps (33.40 ms med) — no regressions
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): 32 lanes (Palit GeForce RTX 4090 GameRock OC, SM 6.8); sampler descriptor emission is wave-size independent
  • cargo test passed for the crates it touches: yes (victory-shader sampler:: — 6 passed; all 5 targeted victory-gpu list/device tests — 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/2mb-page-mappings-and-queue-slots (both keep their own functions above FUNCTIONS)
**@⁠TheOriginalF** on GitHub · 2026-11-30 19:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4368) `TheOriginalF:feat/list-fill-barrier-sampler2-hwconfig` → `main` · +313 −6 · 6 files · 1 commits · open ## What it changes - `crates/victory-gpu/src/list.rs` & `crates/victory-gpu/src/list/thin.rs`: - Adds `write_pattern`, `fill_memory`, `fill32`, `fill64`, `fill128`, `fill128_words_4`, `flush_pipeline`, `write32_2`, `write64_2`, `barrier_x`, and `front_and_back_stencil_ref`. - Wires `MORE_METHODS`, `NEWER_METHODS`, thin-list `FILL32/64/128_WORDS` & 5 wrappers (`MINE` `55 -> 62`), and `f[147]` for newer list methods + headless and slot-layout unit tests. - `crates/victory-gpu/src/pipeline.rs`: adds `create_graphics_x` at device slot `f[60]` (`0x1e0`). - `crates/victory-gpu/src/descriptor.rs`: adds `create_sampler2` at device slot `f[130]` (`0x410`). - `crates/victory-gpu/src/device.rs`: adds `GpuHardwareConfiguration` and `gpu_hardware_configuration` (`f[68]`, `0x220`) reporting Series X (1.825 GHz, v5) / Series S (1.565 GHz, v4) + unit test. - `crates/victory-shader/src/emit/sampler.rs`: clamps `max_lod` with `max_lod.max(min_lod)` so inverted LOD bounds do not emit invalid sampler descriptors + unit test. ## 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, 0 failed pipelines; warm gameplay 24.50 med fps (40.80 ms med) - After: `all-prs.log` (combined branch over `84bd61e2`, 430.5 s): 0 errors, 0 failed pipelines; warm gameplay 24.10 med fps (41.50 ms med), cutscenes 30.00 med fps (33.40 ms med) — no regressions - For shader changes, the wave sizes tested (32 and/or 64 lanes): 32 lanes (Palit GeForce RTX 4090 GameRock OC, SM 6.8); sampler descriptor emission is wave-size independent - `cargo test` passed for the crates it touches: yes (`victory-shader sampler::` — 6 passed; all 5 targeted `victory-gpu` list/device tests — 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/2mb-page-mappings-and-queue-slots` (both keep their own functions above `FUNCTIONS`)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 19:28:38 +00:00
github-bot force-pushed github-bot/gh-4368 from 611e5cb9b5 to 8d34dcb948 2026-12-01 01:35:57 +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/4369/head:github-bot/gh-4368'
git switch 'github-bot/gh-4368'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4368'
git switch 'github-bot/gh-4368'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4368'
git switch 'github-bot/gh-4368'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4368'
git switch 'main'
git merge --squash 'github-bot/gh-4368'
git switch 'main'
git merge --ff-only 'github-bot/gh-4368'
git switch 'main'
git merge 'github-bot/gh-4368'
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!4369
No description provided.