Repository navigation
Description
Problem
At main fd7ce57a63acdfc0a946c22c37ae7568b0b3ee4c, the startup DirectStorage path reconstructs BC1/3/4/5/7. BC2 and BC6H requests complete with zero-filled destinations. BC1 ignores the independent index-history reference and uses a fitted endpoint window and quadrant masks, which produce incorrect packed blocks on independent synthetic inputs.
Locally implemented behavior
- Standalone reconstruction routes for BC1 through BC7, including BC2's explicit alpha and all fourteen BC6H modes.
- Independent BC1 endpoint/index references, exact initial dictionaries and position ranks; the former fitted window and masks are removed.
- File/memory, optional outer RFC 1950 zlib and physical-page destinations use the existing temporary-buffer publication path.
- Unsupported formats and malformed streams fail; they no longer report successful blank textures. A late failure after three valid blocks preserves the destination and does not prevent the following request from succeeding.
- No end-user GDK installation, BCPack.dll, environment override or external private table file is needed.
Verification completed before submission
Implementation commit: d049001ab9a906588f47868277b77e9a00e27053 (topic branch bcpack/standalone-all-formats). Windows 10 x64 build 19045, Ryzen 7 7700, MSVC 19.43, Python 3.14. GDK BCPack version 1.2603.3.0 was used only as a local development oracle.
- The focused CTest selection passed 12/12 in Debug and 12/12 in Release, including golden-mutation and lane-drain controls.
- 12,330 source-built synthetic streams have fixed independent oracle output hashes. They cover all seven formats, all BC6H modes/partitions, all initial predictor references, separate endpoint/index references, precision/subset transitions and history-ring wrap. Every supported entropy path is checked.
- 312 additional successful oracle compression/roundtrip cases matched byte for byte on reference, scalar and AVX2 paths. Oracle compression failures were excluded, not counted as successful cases.
- A separate read-only local archive comparison matched 105,845 chunks from 45 pools, totaling 16,356,958,208 output bytes, on AVX2; 882 distributed chunks also matched on reference/scalar. Counts by format: BC1 100,020; BC2 0; BC3 35; BC4 77; BC5 325; BC6H 268; BC7 5,120. BC2 therefore has synthetic coverage, not local archive coverage.
- Prefix/symbol/table/BC7 Python checks: 37 passed, 3 optional external-reference checks skipped. Documentation links, bidi scan and diff whitespace checks passed.
Public reproduction:
. ./tools/dev.ps1
cmake --preset dev
cmake --build --preset dev --target bcpack_formats_check startup_stub_consumer startup_stub_xcrdapi
ctest --preset dev --no-tests=error -R '^(bcpack_all_formats|startup_bcpack_storage)' -V
python -B tests/bcpack_tables_check.pyThe implementation includes provenance, optional oracle reproduction, synthetic fixtures and documentation. Format constants were recovered through chosen synthetic lane streams and the oracle API; BC6H wire descriptors adapt pinned MIT DirectXTex data with its notice retained. No SDK binary, private header, binary-table dump, archive data or extracted texture is attached. These results measure packed-block decoding, not rendering or full-application startup, and do not prove every possible stream.
Related: #1940 adds failure classification separately. Its inspector layout list will need BC2/BC6H when integrating these branches.
AI-assisted implementation, investigation and report; commands and comparisons were executed locally.
Activity