Commit Graph

6 Commits

Author SHA1 Message Date
9c8c486ba5 bcpack: reject non-flush RANS_L stalls and BC6H/BC7 provisional bypasses 2026-11-23 23:02:33 +01:00
7e823eb4d5 tests/test_bcpack: guard _make_hdr >65,792 and test 16-bit fragment-length boundaries (TEST-881) 2026-11-22 23:56:17 +01:00
d944af2d04 bcpack: count a BC6H/BC7 block once against the provisional gate
The provisional gate allows up to _loose_limit(n) undetermined blocks. For BC6H and BC7 it summed,
per unknown history entry, the blocks whose endpoint root used it and the blocks whose index root
used it, so a block with both roots unknown counted twice: refusals read like "8/4 blocks", and
the gate was up to twice as strict as _loose_limit means. BC3 and BC5 already keep one flag per
block.

_unknown_blocks counts the blocks whose endpoint or index root is an unknown entry, once each;
BC6H (eroot/iroot) and BC7 (er/ir) both use it. The per-entry counts in the provisional notes are
unchanged.

Tests: _unknown_blocks on blocks with one, both or no unknown roots, and a 4-block BC7 chunk whose
endpoint and index all reach history entry 255, with the table check reporting it unknown: the
refusal must say 4/4 (main says 8/4).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:29:10 -03:00
5d5885559f Docs: RDS5 chunk tag to BCPack codec table and a strict BC7 fixture (#827)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 01:09:07 -03:00
03d1e118a6 bcpack: add BC6H and BC7 decoders with external runtime history loader (ASSET-5) 2026-11-21 18:27:01 -08:00
80fb7f2e41 Textures: add clean-room BCPack decoder (rANS + BC1/BC3/BC4/BC5) 2026-11-21 14:44:27 -08:00