Repository navigation
DirectStorage: unpack BCPack requests (BC1, BC3-BC7) instead of refusing them - #950
Yeetbot159 wants to merge 4 commits into
Conversation
|
BC7 byte-parity issue on In the BC7 dictionary reader, offsets 52–53 are being consumed as the first signed index. Skipping that u16, reading 31 indices into the flattened 32 slots, and leaving the last slot zero fixed all 85 differences locally. With that change all 1,056 accepted cases across the six supported formats matched byte-for-byte, with 96 jointly rejected. The same table layout is covered in #856 and already used in #905. No retail input required. Verification assisted by OpenAI Codex (GPT-6.2 Astra). |
|
One separate build blocker surfaced when moving the BC7 control into the actual DirectStorage request path. At Rewriting those two expressions as nested Verification assisted by OpenAI Codex (GPT-6.2 Astra). |
|
Compile-blocked in rebuild: this PR merges the same Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
Stacked on #949; only the top commit belongs here.
Stacked on PR 3; only the top commit belongs here. Open as a draft.
dstorage.rsrefused every BCPack request (E_DECOMPRESSION). NowRequest::checkaccepts BC1 andBC3-BC7, and
executeunpacks them after the optional zlib stage, into the destination (a part blockat the end is handled by unpacking whole blocks and keeping the destination size). BC2 and modes 8-15
are still refused, counted and filled as before, so the
XCL_DSTORAGE_BCPACK_FILLstopgap and thereport counters keep working for those. Semantics follow VIctory's handling of a retail title:
intermediate_sizeis the size of the BCPack stream for zlib + BCPack.Behaviour changes to check: zlib + BCPack with
intermediate_size == 0now returns E_DESTINATION_SIZE(it was E_DECOMPRESSION; the stream size is not knowable); a bad stream returns E_DECOMPRESSION
and logs once under "BCPack".
What is in it:
hle/dstorage.rs(check, execute, tables cache, module docs, tests)Statements that are now out of date:
HANDOFF.md~line 656 ("BCPack … refused"); not edited, per AGENTS.md.Tested: not run yet (draft until it is). Author-side:
dstorage.rsis Windows-only and was NOT compiled or run; only asyntax parse was done (no syntax errors). Treat as untested until you have built it.
Regression run: not run yet (draft until it is) (required)
Not tested: the success path through
execute(the tests cover the validation matrix and a badstream; a valid stream needs real data); AMD / NVIDIA; the retail title.
AI use: Claude (Sonnet 5.5): wrote the change and tests, not compiled.