fix(cli): hash only the embedded DXBC container #21
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/trustno1-coder--VIctory-NVIDIA!21
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-21"
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?
@yualk on GitHub · 2026-11-27 08:17 UTC · original
yualk:fix/embedded-dxbc-extent→main· +28 −4 · 1 files · 1 commits · merged 2026-11-27 08:25 UTCWhat and why
The embedded scanner validates the DXBC header, but passes the entire carrier tail to offline hashing. A shader requested by its runtime hash can therefore be skipped by
translate --warm. Return the validated DXBC extent as a borrowed slice. Preserve the file offset, packed SGD5 behavior, runtime cache identity, and translator source.Related prior work: DexNom/VIctory #116 handles the same raw issue and additionally covers packed padding. This PR is raw-scan only.
Tested on
Windows 11 Pro build 26200, Ryzen 7 9800X3D, Rust/MSVC 1.98.1. Host RTX 5070 Ti, driver 610.88; these checks do not use the GPU. Tested against
c437b0594bplus this patch.cargo +1.98.1 test --locked --offline --profile diag -p victory --features diagnostics --bin victory shader::tests::embedded_containers_keep_runtime_hashes -- --exact— 1 passed.cargo +1.98.1 build --locked --offline --profile diag -p victory --features diagnostics— passed, with existing unrelated warnings.victory shader-info --verbose solo.cdxil carrier.bin— exactly two sources, both252d095627775c35; dangling magic ignored.Synthetic input:
Not tested
No game, GPU pipeline warmup, startup timing, gameplay, or FPS claim. No game material is needed for the test.
AI use
omp with OpenAI GPT-6.2 Sol assisted with the patch, review, and local verification.