bcpack: add a stride-6 lane diagnostic #95

Merged
raulmoracode merged 2 commits from upstream-pr/96 into main 2026-11-21 16:46:27 +00:00
raulmoracode commented 2026-11-21 15:56:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by raulmoracode on 2026-11-21T15:56:35Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6531053410 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/96). Originally posted by [raulmoracode](https://github.com/raulmoracode) on 2026-11-21T15:56:35Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:41:18 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!95
No description provided.