GPU: read VICTORY_SKIP_PIPELINES in release builds too #91
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!91
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@omeuniercombet on GitHub · 2026-11-24 21:24 UTC · original
omeuniercombet:pr/skip-pipelines-release→main· +10 −8 · 3 files · 1 commits · openWhat
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.
@ericomeehan on GitHub · 2026-11-24 22:01 UTC · original
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).
@omeuniercombet on GitHub · 2026-11-24 22:25 UTC · original
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.)
@JFIREonFIRE on GitHub · 2026-11-24 22:25 UTC · original
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).
@MamaLeVrai on GitHub · 2026-11-25 10:59 UTC · original
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
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.Merge
Merge the changes and update on Forgejo.