BC6H BCPack: endpoint presets refitted on edge continuity #170
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!170
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/170/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-24 15:40 UTC · original
holdmysocks:claude/bcpack-bc6h-edges→master· +48 −48 · 1 files · 1 commits · merged 2026-11-24 16:18 UTCOnly
bc6pack_tables.rschanges; 48 endpoint preset slots get new values (the commit message says 57, which counts nine slots twice across two sweeps).Defect. Flat areas of some BC6H textures decoded as speckle: blocks whose endpoint chains start at different preset slots got different colours for the same background.
Check, needing no reference. For neighbouring blocks whose chains start at different places, the log2 pixel step across the shared edge should match the normal step (0.2). For 46 slots it was more than 1.0 higher, with a constant sign, so the slot value was off by a large constant.
Fit. Each slot's 12 values are refitted to minimise that step, with the no-wrap rule as a penalty. A slot changes only if its cost falls by more than 5 %.
The two textures that got worse lost 0.1 and 0.2 dB. Plain BC6H textures of the same stores have a mip-check median of 28.7 dB, so BCPack BC6H is now level with them. 20 slots still show a moderate edge excess (0.5 to 1.0).
Tests: decoder tests pass.