gpu: name the shader digest when it does not translate #594
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/readmet3xt-lab--foxhound!594
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-594"
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?
@oxybes on GitHub · 2026-12-04 12:01 UTC · original
oxybes:pr/warn-digest→main· +32 −0 · 1 files · 1 commits · draftWhen a shader does not translate, the warning names it by
hash, which is a 16-character content hash of the container. Title-profile roles (wave_wide_refused,wave_wide,scene_kernel_64, and so on) are matched by the full 16-byte digest in the DXBC header (0x04, seecrates/victory-shader/src/dxbc.rs). A reader with onlyhashcannot turn the log line into the profile entry the warning is asking for.This adds the digest to the same warning:
The field comes from a small
digest_hexhelper (container[4..20], 32 lowercase hex characters, empty when the container is shorter than the header). It runs only in the arm that already fails; there is no change to translation, the cache key or any behaviour. The message text and the existing keys stay the same, so log parsers that match the text orhash=/error=keep working.Testing
cargo test -p victory-gpu --lib: 643 passed. The newthe_warning_names_the_full_digestcovers a 20-byte container, a 19-byte one and an empty one.Why it is useful
Writing a title profile means naming the programs the engine refuses by digest; today the engine prints only the short hash (a different value), so a title author has to instrument the translator to find it. One field in the warning removes that step. It does not fix any translation by itself.
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.