BC3/BC4/BC5 BCPack: 44 preset slots fitted on mip consistency #352
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!352
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/352/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-26 04:24 UTC · original
holdmysocks:bcpack-bc345-presets→master· +44 −44 · 2 files · 1 commits · merged 2026-11-26 04:43 UTCRefits preset window slots for the BC3, BC4 and BC5 BCPack decoders, using the same mip-consistency fit as the BC1 and BC6H tables: a decoded block of mip m should match the pixels of mip m+1 it covers.
A slot is kept only where the fit gains on both even and odd chunks. A check over all textures found one regression above 1 dB, a BC5 texture whose reference mip roots mostly at slot 222 (35.4 to 29.2 dB), so slot 222 keeps its old value.
Across all textures, the counts under 20 dB and under 25 dB are unchanged for all three formats. 19 of 40 BC4 BCPack textures gain more than 1 dB, and none lose that much.
Only the two table files change.
cargo test -p sixng-core -- bc3pack bc45packpasses.