CLI: replay selected runtime shader hashes in offline translation #1114
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!1114
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1114"
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?
@Razdva122 on GitHub · 2026-11-24 15:49 UTC · original
Razdva122:cli/translation-diagnostics→main· +275 −19 · 7 files · 4 commits · openGPU reports such as #1062 identify a failing pipeline by a 16-digit shader hash. This adds an exact hash filter to the offline translator, so someone with a local archive can replay the named shaders and see the source locations and translation outcomes.
The command accepts repeated options or comma-separated hashes. It scans raw DXBC containers and compressed SGD5 records, then runs translation and optional validation/pipeline checks for the matches. It reports all missing requests after printing the matches. Scanning and decompression are still necessary. The full-cache warm-up mode rejects the hash filter.
The runtime hashes the supplied bytecode length. The scan tests the declared DXBC extent and, when available, the complete standalone file or unpacked record, which can include padding. At an interior raw file offset, only the declared extent is known.
PR #378 adds hashes to full listings. This contribution targets replay of known hashes and leaves the unfiltered census behavior intact. In-process tests exercise the CLI parser, scanner, translator and missing-hash check with synthetic inputs. They cover padded bytecode, identical DXIL in different containers, duplicates, malformed hashes and missing matches. The tests use the existing workspace dependencies.
An independent tester found and validated all 21 hashes from a live WARP startup on the earlier revision
89f3d3cusing the archive and executable together. Test reportAI-assisted with Codex.
Windows CI passed both workspace Clippy configurations and the full workspace test suite at
10c92dc. Windows job@SkillIssueXO on GitHub · 2026-11-24 16:13 UTC · original
Verified with the Xbox Series X 1.0.2.1 title on Windows 11 using PR head
89f3d3cand the SDK’sdxil.dll1.9.2602.17.first bindhashes from a live WARP startup onmainffe310e.translate --shader-hash … --list --validatefound 19 inshaders.rpf. Addinggame_scarlett_master.exerecovered both remaining hashes,06295fb1d1aefb78anddfafaf385b2f94e8. All 21 validated (18 vertex/pixel, 3 compute). The archive-only run returned exit 1 and listed those two misses. The expanded input returned exit 0.fdd56d97a806bcca,17af15c4015cb4b6,55679a0547649d0b,89d08e561897d4e5) and both hashes from #1119 (535f8a954d8ec638,eb47e845b2cb0eba) all matched inshaders.rpf. All six are compute. DXIL emission stopped on unknown structured-buffer stride for five, and on an untracked select mask foreb47e845b2cb0eba. The per-hash locations and outcomes agreed between--jobs 1and--jobs 8. Adding a deliberately absent hash kept the six results and returned exit 1 for that hash.This verifies the replay and input coverage against the title. DXIL validation was offline. AI-assisted (Codex).
@Zipettte on GitHub · 2026-11-24 18:01 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 89f3d3c:
cargo test -p victory -p victory-shaderpasses, 125 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 00:35 UTC · original · edited 2026-11-25 22:28 UTC
Automated triage for the maintainers.
Needs rebase. This PR no longer merges cleanly into
main:mainhas moved since the last triage, and the branch now conflicts inREADME.mdandapps/victory/src/main.rs. It will be reviewed again once it is rebased onto currentmain.Previous verdict for this head: merge candidate.
Generated by Claude Code
@Razdva122 on GitHub · 2026-11-25 06:55 UTC · original
@Marvisak, could you re-review
651cc2aand update thetriage: needs worklabel if this addresses the earlier review?The CLI tests now exercise the parser, scanner and translator in process. The dependency manifests and lockfile match main, and the README example takes three lines. Both Clippy configurations and the full workspace test suite passed on Windows. Changes since triage · Windows CI
651cc2ac1ato352bf0873e@Razdva122 on GitHub · 2026-11-26 12:28 UTC · original
Could you re-review the shader replay change at
10c92dcand refresh the rebase label? The branch now merges cleanly withmainat63bcca4. The rebase keeps the new nonzero worker-count check, and the two shader fixtures added on main now supply the declared length of an empty DXBC header. Both Clippy configurations and the full workspace suite passed on Windows. CI resultsView 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.