fix(cli): hash only the embedded DXBC container #21
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yualk on 2026-11-27T08:17:56Z.
What 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.