gpu: allow @file in VICTORY_SKIP_PIPELINES #3418
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3418
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3418"
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?
@danielibabet on GitHub · 2026-11-27 00:17 UTC · original
danielibabet:pr/skip-pipelines-file→main· +48 −3 · 2 files · 2 commits · openAllow passing \VICTORY_SKIP_PIPELINES=@path/to/hashes.txt\ (comma- or whitespace/newline-separated 16-digit shader hashes) so large skip lists don't hit environment-variable length limits.
Verified:
@Dukestar69 on GitHub · 2026-11-27 00:27 UTC · original · approved these changes
LGTM — verified on RTX 5090 (Windows / D3D12) against
origin/main(63bcca4).@filesyntax inVICTORY_SKIP_PIPELINEScleanly avoids command-line/environment length limits when bisecting pipelines.cargo test -p victory-gpu --lib --features diagnostics pipeline:: -- --test-threads=1: all passed.cargo clippy -p victory-gpu --all-targets -- -D warnings(default +--features diagnostics): clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 00:48 UTC · original
I checked exact head
2721fe1with a synthetic UTF-8 skip file using CRLF, a space in its path, and both commas and newlines. With a UTF-8 BOM, the parser drops the first hash. The same file without a BOM keeps all three.The follow-up handles the BOM at the file boundary and documents
@<path>in the diagnostics table. The three skip-list tests, strict clippy in both configurations, and asset policy passed on Windows. @danielibabet please retain the Git author if picking it or addCo-authored-by: andrewpozdnakov7-jpgif folding the change.@danielibabet on GitHub · 2026-11-27 00:50 UTC · original
@andrewpozdnakov7-jpg Good catch on the UTF-8 BOM! I've fast-forwarded \pr/skip-pipelines-file\ to your commit \
d64d107\ (retaining your Git authorship).Verified locally on Windows 11:
@fuzeofficlal on GitHub · 2026-11-27 01:02 UTC · original · approved these changes
Looks good on
d64d10748e5f67d290c16d3110a5833f925b5e55. Splitting on commas and ASCII whitespace, stripping an optional UTF-8 BOM inload_skip_hashes, warning and returning empty on unreadable@<path>files, and documenting@<path>inREADME.mdare all clean and properly gated under#[cfg(feature = "diagnostics")].Verified:
cargo xtask policypasses cleanly.cargo clippy --tests -p victory-gpu(default and--features diagnostics,-D warnings) passes with zero warnings.skip_hashesunit tests pass under--features diagnostics(covering commas, CRLF, UTF-8 BOM, spaces in file paths, invalid entries, and missing files).@rezioliver-collab on GitHub · 2026-11-27 02:59 UTC · original
I tried a 286,723-byte skip file on an Apple M1. It contained 16,384 synthetic uppercase hashes, a UTF-8 BOM and alternating CRLF/tab separators. On PR
d64d1074all 16,384 entries matched the inline list in order and lowercase value, including the first and last.With the list already loaded, the production lookup for a single shader took a median 2.93 ns for a first-entry hit, 31.22 µs for a last-entry hit and 31.32 µs for a miss (optimized Rust 1.98.1, 12 samples). For comparison, a separate sorted index took 0.645 ms to build and reduced a miss to 0.096 µs, but increased a first-entry hit to 94.4 ns. On this input the build cost worked out to about 21 repeated misses. The index was only part of the experiment. File I/O was outside the lookup timing.
AI-assisted with Codex.
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.