perf(shader): speed up DXBC container hashing #334
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/334"
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 avatarmanz/VIctory-7900XTX. Originally posted by brainbudt on 2026-11-26T17:26:13Z.
Problem
Emitting a DXBC container allocates a temporary heap buffer for MD5 padding and computes the message index and rotation per compression step at runtime.
Change
Build the final one or two blocks in a 128-byte stack buffer and unroll all 64 MD5 steps in pure safe Rust (
crates/victory-shader/src/emit/container.rs), preserving DXBC's non-standard padding byte-for-byte.Verification
cargo test -p victory-shader --lib container(5 passed) anddxbc(2 passed),cargo clippy -p victory-shader --lib -- -D warnings, andcargo xtask policy(266 files) all passed.Reviewed by GPT-6.2 Sol in Codex (APPROVE); implemented with Mistral Large 4 in Mistral Vibe (orchestrated with Gemini 4 Neon in T3 Code).
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.