Repository navigation
Bound discovered and packed shaders to their containers - #116
andrewDoing wants to merge 2 commits into
Conversation
|
Independent hardware-GPU Windows verification and diff review of Tested
Diff Review (
|
Reported-by: retrope13
|
Thanks @retrope13 for the independent hardware verification and for catching the packed-record asymmetry. Confirmed with a valid synthetic SGD5 record: nine bytes after a 475-byte DXBC payload changed the Raw, packed, and padded-packed inputs now produce the same hash and 475-byte dump. Both workspace Clippy configurations and the asset policy passed; the clean serial workspace suite passed with 685 passed and 12 ignored using the CI software-adapter setting. No retail archive or gameplay was tested. |
Raw shader discovery currently passes the entire remaining input file as each discovered DXBC container. The translation tool consequently hashes and can dump unrelated trailing data, and the same shader can receive different hashes depending on its location.
Use the validated declared container length for discovered raw sources and share that length with warmup. Also bound valid unpacked SGD5 payloads before translation hashes and dumps them, retaining original bytes for malformed-payload diagnostics.
The CLI reported the same hash for a synthetic shader on its own and at two offsets in an archive; a matching dump contained exactly the shader's 48 bytes. A second 475-byte synthetic shader produced the same hash and dump as raw, packed, and packed with nine trailing bytes. Regressions cover both raw and packed boundaries.
Pinned Rust 1.98.1: both workspace Clippy configurations and the asset policy passed; the serial workspace suite passed with 685 passed, 0 failed, and 12 ignored using CI's software-adapter setting. No game data or gameplay run.
Thanks to @retrope13 for identifying the packed-record asymmetry. GPT-6.2 Astra implemented and tested the change.