BCPack: BC3, BC4, BC5 and BC7 presets made consistent with three more exact rules #125
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!125
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/125/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 05:24 UTC · original
holdmysocks:claude/bcpack-rules-3→master· +194 −194 · 3 files · 1 commits · merged 2026-11-24 05:54 UTCPreset tables only; no decoder code changes. Each rule was found on chains that never touch a preset table, where it depends on the decoder rules alone, and is then used to correct preset values on the chains that do.
Effect on the decode:
The BC4/BC5 rule is applied only where the child-mip error allows it (a violation costs 50 units of squared error), because it is not perfectly exact for BC5. In most slots the error falls together with the violations, which is independent support for the rule.
Not applied: the same gap rule on BC3 alpha. It holds on chains without presets (4 of 61,383), but enforcing it raised the alpha error, so BC3 alpha presets are unchanged.
Tests:
cargo test --release -p sixng-core bc, 18 pass.