bcpack: add a stride-6 lane diagnostic #96

Manually merged
github merged 2 commits from gh-pr/96/head into gh-pr/96/base 2026-11-26 21:26:46 +00:00
Owner

@⁠raulmoracode on GitHub · 2026-11-21 15:56 UTC · original
raulmoracode:bcpack/stride-6-diagnostic → main · +81 −7 · 3 files · 2 commits · merged 2026-11-21 16:46 UTC

Refs #15

Change

Adds two diagnostic options to tools/bcpack_probe.py:

  • --lane-stride 6 reads eight contiguous six-byte records instead of the
    default interleaved eight-byte layout;
  • --scan-lanes prints each lane's mode, budget and state bytes without
    attempting a decode.

Adds synthetic checks for both layouts and documents the options in
docs/experiments.md. The default behavior is unchanged.

Verification

python -B tests/bcpack_check.py
Ran 5 tests in 0.015s
OK

The new stride-6 path also produced a verified constant lane from a synthetic
six-byte record, and --scan-lanes reported the expected mode and budget for a
synthetic BC7-style record.

Evidence and follow-up

This does not identify a BC7 K value, re-encode a real lane or close #15. It
makes the stride-6 header hypothesis testable with a known packet or block
reference. The variable lane models remain open.

**@⁠raulmoracode** on GitHub · 2026-11-21 15:56 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/96) `raulmoracode:bcpack/stride-6-diagnostic` → `main` · +81 −7 · 3 files · 2 commits · merged 2026-11-21 16:46 UTC Refs #15 ## Change Adds two diagnostic options to `tools/bcpack_probe.py`: - `--lane-stride 6` reads eight contiguous six-byte records instead of the default interleaved eight-byte layout; - `--scan-lanes` prints each lane's mode, budget and state bytes without attempting a decode. Adds synthetic checks for both layouts and documents the options in `docs/experiments.md`. The default behavior is unchanged. ## Verification ```text python -B tests/bcpack_check.py Ran 5 tests in 0.015s OK ``` The new stride-6 path also produced a verified constant lane from a synthetic six-byte record, and `--scan-lanes` reported the expected mode and budget for a synthetic BC7-style record. ## Evidence and follow-up This does not identify a BC7 K value, re-encode a real lane or close #15. It makes the stride-6 header hypothesis testable with a known packet or block reference. The variable lane models remain open.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:26:44 +00:00
github manually merged commit 44651f1d7a into gh-pr/96/base 2026-11-26 21:26:46 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.