Fingerprint shaders from the active Cargo checkout #819
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/820"
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 Kamiloj9 on 2026-11-25T08:49:28Z.
Change
Read
CARGO_MANIFEST_DIRwhen Cargo runs the shader fingerprint script. A sharedCARGO_TARGET_DIRcan reuse a build-script binary compiled in a different checkout. Its compile-time manifest path made the fingerprint describe the other checkout's translator and could reuse stale shader cache entries.Verification
Reproduced with two actual checkouts and one reused build-script binary. The original binary printed the same source hash for both manifest directories. The corrected binary printed distinct hashes and preserved the original hash for the checkout it previously used. Independent review and staged asset policy passed.
Imported from fxceless/victory-fork. Originally posted by SkillIssueXO on 2026-11-25T09:57:27Z.
I reproduced this on Windows with the same Cargo target directory shared by two checkouts. The original fingerprint script reported the same source fingerprint for both when its executable was reused. With this patch, the same executable reports distinct fingerprints for the two active checkouts.
This affected a live renderer test. A reused cache supplied older translations for two compute shaders, leaving out the root constant used by the indirect-dispatch split. A clean cache on the same executable restored that constant for both shaders. In the matched 1080p gameplay view, the stale blocks along the bottom cleared and the indirect-compute truncation counter fell to zero for the measured interval. Other rendering defects remain.
AI-assisted verification.
Imported from fxceless/victory-fork. Originally posted by MamaLeVrai on 2026-11-25T10:12:53Z.
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
f2ae713intomain9376fd6in a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warningsfails with exactly the errorsmainitself has on this machine (placed_filler_twinsnever used,depth_writtennever read, invictory-gpu); with--all-featuresit fails with the same number of errors asmain(4). This PR adds none and removes none.cargo test --workspace --locked: 540 passed, 0 failed, 10 ignored, two runs (mainalone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
Pull request closed