GPU: port texture streaming and indirect draw improvements #9

Open
github-bot wants to merge 9 commits from github-bot/gh-9 into main AGit
Owner

@⁠Lkxex on GitHub · 2026-11-25 17:15 UTC · original
Lkxex:port/nov25-dexnom → main · +1153 −52 · 11 files · 9 commits · open

Ports DirectStorage staging, bounded texture queue sorting, shader signature deduplication and opt-in GPU detiling in the parallel prelude. DexNom's sparse and partial-mip upload paths are preserved.

Windows cargo check passed. In-game FPS was not measured.

**@⁠Lkxex** on GitHub · 2026-11-25 17:15 UTC · [original](https://github.com/DexNom/VIctory/pull/9) `Lkxex:port/nov25-dexnom` → `main` · +1153 −52 · 11 files · 9 commits · open Ports DirectStorage staging, bounded texture queue sorting, shader signature deduplication and opt-in GPU detiling in the parallel prelude. DexNom's sparse and partial-mip upload paths are preserved. Windows cargo check passed. In-game FPS was not measured.
Port-of: bda5b05
Source contribution: 882
Port-of: 166f783
Source contribution: 886
Port-of: 910ea45
Source contribution: 894
Port-of: a8dc0cd
Source contribution: B7
Keep DexNom's sparse and partial-mip paths on their existing CPU upload.

Port-of: f26366d
Source contribution: GPU-detile
Port-of: fbecee4
Source contribution: 887
DexNom already handles resident mips in its own staging path. Only the queue selection applies here.

Port-of: db88f96
Source contribution: 1031
Use the one-lane shader for opt-in independent records while retaining the existing clamp for batches.

Port-of: e377a5c
Source contribution: 1016
# Conflicts:
#	crates/victory-gpu/src/descriptor/host.rs
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:38 +00:00
Author
Owner

@⁠molodayamama on GitHub · 2026-11-25 18:53 UTC · original

Tested on NVIDIA GeForce RTX 4060 8 GB / AMD Ryzen 5 5600 / Windows 10 22H2 (19045.5794) / Rust 1.98.1 (x86_64-pc-windows-msvc), since the PR description noted only cargo check was run so far:

Checks on unmodified PR (c8c53af)

  • cargo test --locked -p xtask: 4 passed, 0 failed (asset policy: 194 files ok)
  • cargo clippy --workspace --all-targets --locked -- -D warnings: 0 warnings
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: 0 warnings
  • cargo test --locked -p victory-formats --lib: 27 passed, 0 failed
  • cargo test --locked -p victory-hle --lib dstorage: 18 passed, 0 failed

Hardware D3D12 tests on RTX 4060

(Run with Agility SDK 1.614.1 via #12 for Windows 10 SM 6.6 support; no game files):

  • cargo test --locked -p victory-gpu --lib: 176 passed, 0 failed (including texture::gpu_detile::tests::gpu_detiling_matches_the_cpu_texture_upload)
  • VICTORY_GPU_DETILE=1 resource::tests::title_texture_upload_runs_gpu_detile_from_the_prelude -- --ignored --exact: passed (0.27s)
  • VICTORY_GPU_DETILE=1 cargo test --release --locked -p victory-gpu --lib texture::gpu_detile::tests::bench_gpu_detiling_texture_uploads -- --ignored --exact --nocapture:
Texture Path Fill Recorded Done
2048x2048 DXGI_FORMAT(28) (RGBA8) CPU 4.1957 ms 4.3689 ms 8.3933 ms
2048x2048 DXGI_FORMAT(28) (RGBA8) GPU 1.7233 ms 1.8929 ms 6.5508 ms
4096x4096 DXGI_FORMAT(98) (BC7) CPU 3.5763 ms 3.7034 ms 8.2078 ms
4096x4096 DXGI_FORMAT(98) (BC7) GPU 1.7945 ms 1.9964 ms 6.3055 ms

Merge note

Against current main (2e01ab4), git merge-tree reports a content conflict in crates/victory-gpu/src/descriptor/host.rs, so this branch will need a rebase before merging.

**@⁠molodayamama** on GitHub · 2026-11-25 18:53 UTC · [original](https://github.com/DexNom/VIctory/pull/9#issuecomment-7171552263) Tested on **NVIDIA GeForce RTX 4060 8 GB** / AMD Ryzen 5 5600 / Windows 10 22H2 (`19045.5794`) / Rust `1.98.1` (`x86_64-pc-windows-msvc`), since the PR description noted only `cargo check` was run so far: ### Checks on unmodified PR (`c8c53af`) - `cargo test --locked -p xtask`: **4 passed, 0 failed** (`asset policy: 194 files ok`) - `cargo clippy --workspace --all-targets --locked -- -D warnings`: **0 warnings** - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: **0 warnings** - `cargo test --locked -p victory-formats --lib`: **27 passed, 0 failed** - `cargo test --locked -p victory-hle --lib dstorage`: **18 passed, 0 failed** ### Hardware D3D12 tests on RTX 4060 (Run with Agility SDK `1.614.1` via #12 for Windows 10 SM 6.6 support; no game files): - `cargo test --locked -p victory-gpu --lib`: **176 passed, 0 failed** (including `texture::gpu_detile::tests::gpu_detiling_matches_the_cpu_texture_upload`) - `VICTORY_GPU_DETILE=1` `resource::tests::title_texture_upload_runs_gpu_detile_from_the_prelude -- --ignored --exact`: **passed** (`0.27s`) - `VICTORY_GPU_DETILE=1` `cargo test --release --locked -p victory-gpu --lib texture::gpu_detile::tests::bench_gpu_detiling_texture_uploads -- --ignored --exact --nocapture`: | Texture | Path | Fill | Recorded | Done | | --- | --- | ---: | ---: | ---: | | `2048x2048` `DXGI_FORMAT(28)` (RGBA8) | CPU | 4.1957 ms | 4.3689 ms | 8.3933 ms | | `2048x2048` `DXGI_FORMAT(28)` (RGBA8) | GPU | **1.7233 ms** | **1.8929 ms** | **6.5508 ms** | | `4096x4096` `DXGI_FORMAT(98)` (BC7) | CPU | 3.5763 ms | 3.7034 ms | 8.2078 ms | | `4096x4096` `DXGI_FORMAT(98)` (BC7) | GPU | **1.7945 ms** | **1.9964 ms** | **6.3055 ms** | ### Merge note Against current `main` (`2e01ab4`), `git merge-tree` reports a content conflict in `crates/victory-gpu/src/descriptor/host.rs`, so this branch will need a rebase before merging.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/texture.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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