BC1 preset window: correct 74 fitted slots and fill slot 4 #6
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/Ahmet-Dedeler--bcpack-rs!6
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/6/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?
@Ahmet-Dedeler on GitHub · 2026-11-24 13:33 UTC · original
Ahmet-Dedeler:fix/bc1-window-format-values→master· +84 −84 · 5 files · 1 commits · merged 2026-11-24 13:34 UTCCloses #4.
The report was right. I compared
data/bc1_window.jsonwith the format's constant BC1 dictionary as a reference decoder carries it:Those 75 slots now hold the reference value; the old fitted value stays in the file as
fitted_value.Measured
tools/retail/mip_e2e.py 600 1(600 random pair textures, BCPack mip 0 decoded and compared with the plain mip 1), old table vs new:Per texture: 44 better, 27 worse, 529 unchanged. Largest gain 12.31 dB, largest loss 0.30 dB. The old numbers reproduce the README's published ones exactly.
cargo testpasses. The index codebook (bc1_quad_table.json) is not touched and has not been compared with a reference yet.Also fixes a temp file name in
mip_e2e.pythat broke on texture ids containing a slash.@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 13:33 UTC · original · edited 2026-11-24 13:36 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
e24372bℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@coderabbitai[bot] on GitHub · 2026-11-24 13:33 UTC · original · edited 2026-11-24 13:35 UTC
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
@Yoshi-233 on GitHub · 2026-11-25 02:49 UTC · original
I checked how the updated table affects the Rust assembler on x86-64 Linux at merge commit
b1c3099a3402. I made 255 synthetic one-block inputs: block 0 references one preset slot at a time, with zero endpoint residuals and identical index symbols. I assembled each input with both the pre-PR table and the merged default table.75 slots changed their emitted RGB565 endpoint pair and 180 kept the same pair. All 255 matched an independent RGB565 packing of the JSON entries; the index bytes stayed identical. For slot 4 specifically, the endpoint pair changed from
(0x0000, 0x0000)to(0x636d, 0x3186), and the unfitted-block count went from 1 to 0. The existing CPU roundtrip suite also passed 9/9. This checks the table-to-decoder path with generated inputs.