perf(shader): speed up DXBC container hashing #334
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!334
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@brainbudt on GitHub · 2026-11-26 17:26 UTC · original
brainbudt:perf/dxbc-container-md5→main· +259 −52 · 1 files · 1 commits · openProblem
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.