Add opt-in native gathers for card-step reads #3614
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3614"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by masteraapjes on 2026-11-30T01:43:11Z.
What it changes
Add experimental
VICTORY_CARD_GATHER=1to replace eligible read-side card-step copies with a native compute gather into the existing intermediate buffer. Preserve copy-outs, dependency levels, current upstream scoped UAV barriers and fallback copies. The switch remains off by default.Admission checks resource capabilities, alignment, bounds, aliasing and destination overlap, plus the 32-reads-per-source threshold and early source-count budget. Hold uploads and sources through the recording list’s flight. Retain later mixed-level WARP/debug parity coverage.
Rebuilt independently on upstream main
5fabb46eaf6ed8771321787f8871051abde69b9bto resolve the conflict after upstream history changed. Obsolete shared CI commits have been removed from the PR diff. Current upstream changes are retained.How it was tested
Windows, pinned Rust 1.98.1. Tested head:
a2b9a2d31bf4b24a59ab56d89db79bf93f6bb166.VICTORY_D3D12_WARP=1 VICTORY_D3D12_DEBUG=1,cargo test --locked -j 2 -p victory-gpu --lib --features diagnostics host::card_steps::gather:: -- --test-threads=1 --nocapture: 8 passed, 2 ignored benchmarks.cargo test --locked -j 2 -p victory-gpu --lib --features diagnostics native_card_gather_preserves -- --test-threads=1 --nocapture: 2 passed. Confirmed software WARP adapter and active debug queue.cargo clippy --locked -p victory-gpu --all-targets -- -D warningscargo clippy --locked -p victory-gpu --all-targets --all-features -- -D warningscargo run --locked --package xtask -- policy: 467 files passed.git diff --checkpassed.Current upstream CI blocker, independently reproduced on unmodified main
5fabb46e: bothcargo clippy --workspace --all-targets --locked -- -D warningsandcargo clippy --workspace --all-targets --all-features --locked -- -D warningsexit 101 with five errors inhost/font.rs:213/260,host/menu.rs:667andhost/panel.rs:602/668. Existing #4679 addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CIcheckjob passed.Authored synthetic fixtures only. No fresh timing benchmarks or controlled gather-only gameplay comparison were run; net gameplay benefit remains unestablished. The HLSL helper uses 64 threads per group without assuming hardware wave width. The full workspace test suite was not rerun for this conflict-resolution update. No game data is included.
Checked for overlap
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nicolasabosch on 2026-11-30T23:19:19Z.
Tested on an RTX 4070 Laptop 8 GB with
VICTORY_CARD_GATHER=1: no measurable fps difference in this scene (2 runs).What was built
e1251c31with four opt-in PRs merged together and nothing else changed: #4069, #3757, #3614 and #4206. This PR's head wasf377fe31.Setup
victory play --series-s --dlss performance --framegen 2, with no fps cap and the window minimized.host:reports, about 200 s. These are real frames, not generated ones.On this laptop, identical runs differ by about 0.5–1 fps, so only an effect of roughly 1.5 fps or more would show.
In this scene the frame (~60 ms) is longer than the submit thread's own work (~33–40 ms), so a gain on the submit thread alone may not reach the fps here. Run 1 had a rougher stretch: the spread between reports was 2.2 fps, against about 0.6 in the other runs, and the mean frame time was 66 ms. Its fps mean did not change, and run 2 was smooth.
Not tested: driving, camera turns, interiors, an image comparison, other GPUs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:50:29Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed