victory translate --hashes and translate-diff: compare two builds' emitted DXIL program by program #817
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!817
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-817"
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?
@JRamos1993 on GitHub · 2026-11-25 08:40 UTC · original
JRamos1993:translate-hashes→main· +320 −3 · 4 files · 1 commits · openWhy
victory translate --validatereports how many programs validate, not which ones change. A PR can keep that count and still change the code of thousands of programs, or gain some and lose others.I compared PRs this way tonight with a local patch, and it caught things the count alone hides:
main: #713This PR makes that check part of the tool, so anyone with the pack can run it.
What
victory translate --hashes(implies--list): each emitted program's line namesdxil=and 16 hex digits of the BLAKE3 of its DXIL container, taken before the validator signs it.--validateor--pipelines, an emitted program gets anemittedline to carry the hash.validated,pipeline created, a reason), so existing greps keep working.victory translate-diff <old list> <new list> [--keys]: compares two such lists by program (container hash and stage). It prints:--hashes.--keysnames the programs under each group. It reads only the two text files, so no GPU or pack is needed for the diff itself.README: the two commands in the command list.
Example:
main9376fd6againstmainwith #699 merged. Both lists come fromtranslate --validate --hashesover the retail pack; the output has no title data without--keys.Tested
RTX 5090, Windows 11,
main9376fd6.translate --validate --hashesruns of this branch over the retail pack, thentranslate-diff: 0 gained, 0 lost, 0 of 25,420 changed.2119b0eagainst310c6eb(with my local equivalent) differed for 8,514 programs.translate_diff.cargo test -p victory --locked: 5 passed, 0 failed.cargo clippy -p victory --all-targets --locked, with and without--all-features, gives no warnings inapps/victory.-D warnings, clippy stops earlier invictory-gpuonmainitself (placed_filler_twinsunused,sort_unstable_by_keyindraw.rs,depth_writtennever read), files this PR does not touch.Not tested
victory(nodxil=): they compare for gains and losses, and the DXIL part says it needs--hashes.AI use
Claude Code with Claude Opus 5.5 wrote the change and the tests, ran the pack and wrote this description. The tests use synthetic list lines; nothing from the title is in the PR.
@MamaLeVrai on GitHub · 2026-11-25 10:12 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
eb721c4intomain9376fd6in 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: 544 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.
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.