textures: verify fixed lanes using supplied BCPack refills #211
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/214"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T18:29:04Z.
Change
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
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T18:29:13Z.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by MarlomMedeiros on 2026-11-21T18:54:06Z.
Related evidence posted on https://github.com/R0Y00/Xbox2Windows/issues/15#issuecomment-7067597230 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.