BC6H BCPack: 9 endpoint presets refitted on mip consistency #322
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!322
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/322/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-25 23:42 UTC · original
holdmysocks:claude/bcpack-bc6-mipfit→master· +9 −9 · 1 files · 2 commits · merged 2026-11-26 00:36 UTCRefits 9 BC6H endpoint preset slots (5, 66, 83, 85, 118, 135, 155, 200, 210).
Method. Each slot is fitted so its decoded blocks match the next mip of the same texture, per 2x2 quadrant in log2 RGB. The next mip can be stored plain or BCPack. Blocks whose reference starts at the same slot are skipped. The search is coordinate descent with joint moves. A slot is kept when it gains on both even and odd chunks, or by more than 20 % where its blocks sit in one half only. Slot 24 was dropped: its blocks are a single texture's mip 1, fitted against a mip that moved with it. That texture fell from 30.9 to 5.4 dB with slot 24 and goes to 66.8 dB without it.
Mip check of the 89 BCPack BC6H textures, master vs this table:
Slot 85, which the edge-continuity fit could not settle, is included. Values are fitted, not extracted.
Tests:
cargo test -p sixng-core bc6packpasses.@holdmysocks on GitHub · 2026-11-26 00:03 UTC · original
Added a second fit round (
de10329): slots 66 and 200 refined. Mip check against the first round: two BC6H textures better (26.2 -> 26.7 and 30.5 -> 30.6 dB), none worse. Totals against master are unchanged: under 20 dB 4 -> 0, under 25 dB 18 -> 15, 8 better, none worse.