BC5 and BC6H BCPack: fit the last preset slots #21
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!21
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/21/head"
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?
@holdmysocks on GitHub · 2026-11-23 00:30 UTC · original
holdmysocks:claude/bcpack-last-slots→master· +32 −32 · 3 files · 1 commits · merged 2026-11-23 00:53 UTCA decode of every BCPack chunk in the install (108,605 chunks, all six codecs) fails on none. This PR removes the remaining unfitted blocks in BC5 and BC6H; only generated table files and two README sentences change.
BC5 (1,811 blocks in 18 chunks, mostly texture arrays with no neighbour mip): the 13 missing preset slots are fitted by edge continuity. Endpoints are prediction + residual mod 256 along the reference chain, so a slot's value is the offset that makes the blocks rooted at it continuous with their neighbours. The large slots land at about 6/255 per edge pixel.
BC6H (81 K blocks, 1.7 %): 15 endpoint slots are fitted against the next smaller mip; the last 2 (three lighting textures stored as mip 0 only) by edge continuity. The largest of those textures (1024x1024) renders as a smooth glow with no seams.
Unfitted blocks after this PR: BC1 0, BC3 0, BC4 0, BC5 0, BC6H 0. BC7 still has 1.05 % (34 endpoint slots), which a follow-up will address.
Scores against plain neighbour mips are unchanged (BC6H 87.7 % of blocks within 0.15 stops, 28.1 dB). Library tests pass.