gpu: allow @file in VICTORY_SKIP_PIPELINES #3418
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by danielibabet on 2026-11-27T00:17:24Z.
Allow 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:
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-27T00:27:39Z.
Review: APPROVED
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).
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T00:48:52Z.
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.Imported from Marvisak/VIctory. Originally posted by danielibabet on 2026-11-27T00:50:43Z.
@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:
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-27T01:02:18Z.
Review: APPROVED
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).Imported from Marvisak/VIctory. Originally posted by rezioliver-collab on 2026-11-27T02:59:52Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.