gpu: name the shader digest when it does not translate #594
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from readmet3xt-lab/foxhound. Originally posted by oxybes on 2026-12-04T12:01:40Z.
When 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.