GPU: port texture streaming and indirect draw improvements #9
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from DexNom/VIctory. Originally posted by Lkxex on 2026-11-25T17:15:43Z.
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.
Imported from DexNom/VIctory. Originally posted by molodayamama on 2026-11-25T18:53:55Z.
Tested on NVIDIA GeForce RTX 4060 8 GB / AMD Ryzen 5 5600 / Windows 10 22H2 (
19045.5794) / Rust1.98.1(x86_64-pc-windows-msvc), since the PR description noted onlycargo checkwas 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 warningscargo clippy --workspace --all-targets --all-features --locked -- -D warnings: 0 warningscargo test --locked -p victory-formats --lib: 27 passed, 0 failedcargo test --locked -p victory-hle --lib dstorage: 18 passed, 0 failedHardware D3D12 tests on RTX 4060
(Run with Agility SDK
1.614.1via #12 for Windows 10 SM 6.6 support; no game files):cargo test --locked -p victory-gpu --lib: 176 passed, 0 failed (includingtexture::gpu_detile::tests::gpu_detiling_matches_the_cpu_texture_upload)VICTORY_GPU_DETILE=1resource::tests::title_texture_upload_runs_gpu_detile_from_the_prelude -- --ignored --exact: passed (0.27s)VICTORY_GPU_DETILE=1cargo test --release --locked -p victory-gpu --lib texture::gpu_detile::tests::bench_gpu_detiling_texture_uploads -- --ignored --exact --nocapture:2048x2048DXGI_FORMAT(28)(RGBA8)2048x2048DXGI_FORMAT(28)(RGBA8)4096x4096DXGI_FORMAT(98)(BC7)4096x4096DXGI_FORMAT(98)(BC7)Merge note
Against current
main(2e01ab4),git merge-treereports a content conflict incrates/victory-gpu/src/descriptor/host.rs, so this branch will need a rebase before merging.Imported from DexNom/VIctory. Originally posted by andrewDoing on 2026-11-26T23:15:34Z.
I reproduced incorrect texels in the opt-in GPU detiler for supported
SW_64KB_R_Xat83e78b9on a physical RTX 5070. A single 513×513 RGBA8 mip (large enough to pass the upload gate) diverged from the CPU detile starting on row 16. Five standard-swizzle/format controls matched the CPU reference.The shader at
texture/gpu_detile.rs:24adds row and column offsets, whereasrender_xor_offsetcombines overlapping in-tile bits with XOR. A scratch control adding the 64 KiB block components and XORing their low 16 bits for this mode made all six native readbacks pass. Alternatively, excludingSW_64KB_R_XinGpuDetile::newwould retain the CPU path until it is supported. The control is not a complete production patch; no gameplay was tested.Verification was AI-assisted with GPT-6.2 Astra.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.