textures: verify fixed lanes using supplied BCPack refills #214
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!214
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/214/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?
@Vonsek on GitHub · 2026-11-21 18:29 UTC · original
Vonsek:codex/bcpack-complete-refills→main· +63 −19 · 3 files · 1 commits · merged 2026-11-21 18:42 UTCChange
Extend the fixed-symbol BCPack diagnostic to report when the proposed read masks supply all byte refills for a lane and forward decoding reaches the terminal state. The new
verified_constant_lane_with_supplied_refillsstatus includes the zero-based symbol indices that consumed the bytes. Missing, corrupt or surplus supplied reads keep the existingheader_matchdiagnostic for a lane that requires refills. Refs #15.Verification
Base
d5c6f9f, change1430f36, Windows 11 x64, Python 3.12.10. From a fresh worktree:On the base implementation,
python -B tests/bcpack_check.py TextureChecks.test_forward_decode_supplied_refills -vfailed because a valid two-refill lane still reportedheader_match. With the change, all eight Python tests and the focused CTest passed.Evidence and follow-up
The original MIT-licensed fixture uses a header obtained by reverse-encoding 100,000 identical symbols in mode DD from state 2²⁴. That gives header state 0x030B87C1 and decoder refill bytes 93 E3. The test assigns them to lane 3 at packet offsets 49 and 50. Forward decoding consumes them at symbol indices 9,129 and 54,564 and returns to 2²⁴. Changing E3 to E2 yields
header_matchand a false second-refill comparison. A separate 50,000-symbol case verifies the first read can occur in round two.To reproduce the CLI comparison:
Verification is conditional on the supplied lane assignments and block count. The fixture uses the existing fixed-symbol model. The variable-symbol model and lane-to-BC7-field mapping remain open. AI-assisted contribution.
Checklist
@chatgpt-codex-connector[bot] on GitHub · 2026-11-21 18:29 UTC · original · edited 2026-11-21 18:31 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
1430f36ℹ️ 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.
@MarlomMedeiros on GitHub · 2026-11-21 18:54 UTC · original
Related evidence posted on #15 that bears directly on this check's real-lane coverage:
0xdeverifies at K=16 on lane 7 (373 corpus chunks) rather than K=32; the inheritedEXCEPTIONStable only covers the lane-2..6 K=32 case, so this decode path cannot verify real lane-7 constant lanes yet.0xdbverifies at K=2 on lanes 0-1 (184 chunks); it is absent fromEXCEPTIONSentirely.2*blockssymbols, notblocks, so callers calibratingblocksfrom the BC7 block count need the doubling for those lanes to reach the terminal state.None of this blocks the synthetic coverage here; just flagging which parts of the model the corpus evidence extends, since it may shape what
blocksand masks a real-packet caller supplies.