GPU: read VICTORY_SKIP_PIPELINES in release builds too #91
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/91"
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 fxceless/victory-fork. Originally posted by omeuniercombet on 2026-11-24T21:24:11Z.
What
VICTORY_SKIP_PIPELINESwas compiled only with thediagnosticsfeature, so a player whose card's shader compiler crashes or stalls on one program had to run the diagnostics build just to skip it. This reads the list in release builds too.is_skippedchecks indraw.rsand the list parsing inpipeline.rslose theirdiagnosticsgate. The list is read once (OnceLock); with the variable unset the check returns at once.note_drop) stay diagnostics-only.skip_hashes_accepts_full_hashes_onlynow runs without the feature.Why
Issue #3 (RX 9070 XT) needs three kinds of skips on AMD, and I hit the same on an RX 6600 XT: one 71 KB compute program kept AMD's compiler busy for 164 s and its private commit grew by about 10 GB, until Windows ran out of commit and the device was removed at the end of the opening cutscene. Skipping that program let the run reach the prologue checkpoint.
Checked
cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-features: clean.cargo test --workspace --locked: passes (the asset-policy test only complains about an untracked local launcher script in my working copy, nothing in the commit).Not done
Early-pipeline prewarming still queues a skipped program's pipeline if its key is in
early-pipelines.txt; I worked around that locally by removing the key. Making prewarm honour the skip list would be a separate change.AI-assisted (Claude): written and checked on my machine with my own copy of the game. Hashes and counts only; no game data.
Imported from fxceless/victory-fork. Originally posted by ericomeehan on 2026-11-24T22:01:08Z.
Before merging: this branch is based on
4e17478("The game is no longer named in the tree"), but its commit puts the full name back in place of "the title" on six comment lines. Four are incrates/victory-gpu/src/draw.rs: the stride note, the scissor/target note, the "draws what it sees" note and the indirect-rectangles note. Two are incrates/victory-gpu/src/pipeline.rs: the module doc and the stream-layout test doc. On the PR head,git grep -cfinds the name 4 times indraw.rsand 2 times inpipeline.rs;mainand #106 have none. It looks like those files were copied from before4e17478. With those six lines reverted, the PR is just thecfgchanges and the README row.#106 makes the same
VICTORY_SKIP_PIPELINESchange and goes a little further. The fourcfgchanges inpipeline.rsare identical. Indraw.rs, #106 gates the same three places with#[cfg(windows)]where this PR removes the gate, and it also counts skipped dispatches inDROPPEDin release builds. The two PRs conflict on the same lines, so only one can be merged. #106 doesn't have the naming problem and also adds the separate texture-queue settings.I only read the diffs; I didn't build or run either branch.
Written with an AI assistant (Claude).
Imported from fxceless/victory-fork. Originally posted by omeuniercombet on 2026-11-24T22:25:09Z.
Thanks for catching that! Rebased onto latest \main\ and cleaned up the six pre-\4e17478\ comment lines, gated the three \draw.rs\ checks with #[cfg(windows)], and kept \DROPPED\ counting on skipped dispatches in release builds. (Also happy if the maintainer prefers merging #106 instead if they want the texture-queue settings bundled with it.)
Imported from fxceless/victory-fork. Originally posted by JFIREonFIRE on 2026-11-24T22:25:55Z.
A follow-up for the "not done" part. With this PR the skip list is read in release builds, but a skipped pipeline is still started at the title's creation call.
hand_outcallsmake::earlywhenever the pipeline library lists the pipeline as used early, and that path never asks the skip list. So a program skipped because it crashes the host's shader compiler (#145, #120) still reaches that compiler while loading. The draw-time checks indraw.rsare fine; only this early start bypasses them.The patch below goes on top of this PR's head
a141049. It splits the lookup intoskip_hashes()/first_skipped(), sohand_outcan leave skipped pipelines out of the early start, and adds a test of the lookup.Checked on an RTX 3090 (Windows 11):
cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-features: clean.cargo test --workspace --locked: passes.victory-gpugives 112 passed, 1 ignored.Take it into this PR if you like; that's simpler than a separate PR.
patch (git apply)
AI-assisted (Claude Code).
Imported from fxceless/victory-fork. Originally posted by MamaLeVrai on 2026-11-25T10:59:20Z.
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head
c7ece02intomainf85101bin a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warningsfails with exactly the errorsmainitself has on this machine (placed_filler_twins,depth_written, a sort; PR #841 fixes them); with--all-featuresit fails with the same number of errors asmain(4). This PR adds none and removes none.cargo test --workspace --locked: run 1: 556 passed, 0 failed, 11 ignored (mainalone: 555 passed). Run 2: one failure. The failure isindirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields, which fails onmainitself most runs here (PR #849 fixes its assertion; see issue #850). The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
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.