BC1 BCPack: 19 more preset window slots fitted on mip consistency #321
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!321
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/321/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:08 UTC · original
holdmysocks:claude/bcpack-bc1-mipfit→master· +28 −2 · 2 files · 1 commits · merged 2026-11-25 23:19 UTCAdds 19 slots to the BC1 BCPack preset window and refits one existing slot (192). That makes 39 overrides.
Method. Each slot is fitted so its decoded blocks match the next mip of the same texture, per 2x2 quadrant. Blocks whose reference mip starts at the same slot are skipped. A slot is kept only where the fit gains on both even and odd chunks. A first whole-install check traced all 42 regressions to slot 214, and a second traced 3 of 5 to slot 157, so both were dropped.
Mip check over all BC1 BCPack textures (35,533), master vs this table:
The values are fitted, not extracted, so output is still not byte-exact.
Tests:
cargo test -p sixng-core bc1packpasses (no duplicate slots, valid field ranges, window differs only in overridden slots).