docs(textures): sync BCPack table counts, bcpack_tool.py CLI flags, and tile mode rule #2427

Merged
leonida/mandy
Andretuta merged 1 commit from docs/textures-bcpack-tables-and-cli into main 2026-11-28 18:30:16 +00:00

Pull request successfully merged and closed

Andretuta commented 2026-11-27 03:17:38 +00:00

Claimed in the coordination issue as: DOC-TEXTURES-BCPACK-CLI (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7208856827)

What and why

  • Sync built-in BCPack history table counts in docs/textures.md with tools/bcpack_tables.py (BC1: 252 confirmed / 3 provisional; BC4: 2 confirmed / 170 provisional; BC5: 5 confirmed / 209 provisional).
  • Reconcile the contradictory descriptor mode tiling rule with (mode >> 1) & 0xF in tools/tex_headers.py.
  • Sync tools/bcpack_tool.py CLI flags (--codec, [--history <path>], and --provisional vs ttpf_mips.py's --allow-provisional).

Tested

  • tests/test_bcpack.py (20 OK), tests/test_bcpack_tables.py (34 OK), tests/test_bcpack_tool.py (18 OK), tests/test_tex_headers.py (78 OK), tests/test_ttpf_mips.py (93 OK).
  • All tests/test_docs_*.py + tests/test_text_write_line_endings.py: OK.
  • python -I scripts/check_no_game_data.py docs/textures.md: exit 0.

GPUs tested: n/a

AI-assisted: yes (Antigravity gemini-4-neon)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — not a translator rule)
Claimed in the coordination issue as: DOC-TEXTURES-BCPACK-CLI (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7208856827) ### What and why - Sync built-in BCPack history table counts in `docs/textures.md` with `tools/bcpack_tables.py` (BC1: 252 confirmed / 3 provisional; BC4: 2 confirmed / 170 provisional; BC5: 5 confirmed / 209 provisional). - Reconcile the contradictory descriptor `mode` tiling rule with `(mode >> 1) & 0xF` in `tools/tex_headers.py`. - Sync `tools/bcpack_tool.py` CLI flags (`--codec`, `[--history <path>]`, and `--provisional` vs `ttpf_mips.py`'s `--allow-provisional`). ### Tested - `tests/test_bcpack.py` (20 OK), `tests/test_bcpack_tables.py` (34 OK), `tests/test_bcpack_tool.py` (18 OK), `tests/test_tex_headers.py` (78 OK), `tests/test_ttpf_mips.py` (93 OK). - All `tests/test_docs_*.py` + `tests/test_text_write_line_endings.py`: OK. - `python -I scripts/check_no_game_data.py docs/textures.md`: exit 0. GPUs tested: n/a AI-assisted: yes (Antigravity gemini-4-neon) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. *(n/a — not a translator rule)*
tiguan26 approved these changes 2026-11-27 06:03:26 +00:00
tiguan26 left a comment

Approving. Merged onto current main together with the other doc PRs of this batch: no conflicts, and the doc validators (tests/ -k doc: 95 passed, 207 subtests) pass. Recounted from tools/bcpack_tables.py on main: BC1 252 confirmed / 3 provisional (6, 71, 122; 9, 67, 68, 74 are in CONFIRMED), BC4 2 / 170 (52, 190), BC5 5 / 209 (105, 182, 183, 222, 255), all exactly as the new rows say. bcpack.ALL_CODECS is [1, 3, 4, 5, 6, 7], so <1|3|4|5|6|7> is more accurate than <1..7>. --provisional is bcpack_tool decode's flag and --allow-provisional is ttpf_mips.py's, as written. One small follow-up: bcpack_tool.py's own usage docstring still says --codec <1..7>.

Approving. Merged onto current main together with the other doc PRs of this batch: no conflicts, and the doc validators (`tests/` -k doc: 95 passed, 207 subtests) pass. Recounted from `tools/bcpack_tables.py` on main: BC1 252 confirmed / 3 provisional (6, 71, 122; 9, 67, 68, 74 are in CONFIRMED), BC4 2 / 170 (52, 190), BC5 5 / 209 (105, 182, 183, 222, 255), all exactly as the new rows say. `bcpack.ALL_CODECS` is [1, 3, 4, 5, 6, 7], so `<1|3|4|5|6|7>` is more accurate than `<1..7>`. `--provisional` is `bcpack_tool decode`'s flag and `--allow-provisional` is `ttpf_mips.py`'s, as written. One small follow-up: `bcpack_tool.py`'s own usage docstring still says `--codec <1..7>`.
zmasi commented 2026-11-28 12:02:32 +00:00

VERIFY-2427 — verified head 53bd3fd037 merged cleanly with main 030d2039e on Windows 11 Pro (build 26200), synthetic test vectors and live tool-table inspection only.

Red (main 030d2039e) -> Green (030d2039e + 53bd3fd037)

  • Red on main:
    • Cross-checking docs/textures.md against tools/bcpack_tables.py (BC1_HISTORY_CONFIRMED/PROVISIONAL = 252/3, BC4 = 2/170, BC5 = 5/209), tools/bcpack_tool.py (--codec {1,3,4,5,6,7}, --provisional, --history), and tools/tex_headers.py (gfx10_tile_bytes(0) == gfx10_tile_bytes(1) == gfx10_tile_bytes(32) == 65536 via (mode >> 1) & 0xF) -> FAILED on all five stale claims (248/7, 0/55, 3/211, --codec <1..7> / --allow-provisional, and "every other observed mode uses 4 KiB blocks").
  • Green on merged PR:
    • Programmatic docs/textures.md <-> bcpack_tables.py / bcpack_tool.py / tex_headers.py check -> OK.
    • python -I tests/test_bcpack.py, tests/test_bcpack_tables.py, tests/test_bcpack_tool.py, tests/test_tex_headers.py (78 OK), tests/test_ttpf_mips.py, tests/test_docs_links.py, tests/test_docs_encoding.py, and tests/test_text_write_line_endings.py -> all OK.

AI-assisted.

`VERIFY-2427` — verified head `53bd3fd037` merged cleanly with `main` `030d2039e` on Windows 11 Pro (build 26200), synthetic test vectors and live tool-table inspection only. ### Red (`main` `030d2039e`) -> Green (`030d2039e` + `53bd3fd037`) - **Red on `main`**: - Cross-checking `docs/textures.md` against `tools/bcpack_tables.py` (`BC1_HISTORY_CONFIRMED/PROVISIONAL = 252/3`, `BC4 = 2/170`, `BC5 = 5/209`), `tools/bcpack_tool.py` (`--codec {1,3,4,5,6,7}`, `--provisional`, `--history`), and `tools/tex_headers.py` (`gfx10_tile_bytes(0) == gfx10_tile_bytes(1) == gfx10_tile_bytes(32) == 65536` via `(mode >> 1) & 0xF`) -> **FAILED** on all five stale claims (`248/7`, `0/55`, `3/211`, `--codec <1..7>` / `--allow-provisional`, and `"every other observed mode uses 4 KiB blocks"`). - **Green on merged PR**: - Programmatic `docs/textures.md` <-> `bcpack_tables.py` / `bcpack_tool.py` / `tex_headers.py` check -> **OK**. - `python -I tests/test_bcpack.py`, `tests/test_bcpack_tables.py`, `tests/test_bcpack_tool.py`, `tests/test_tex_headers.py` (`78 OK`), `tests/test_ttpf_mips.py`, `tests/test_docs_links.py`, `tests/test_docs_encoding.py`, and `tests/test_text_write_line_endings.py` -> **all OK**. AI-assisted.
MoonEyes commented 2026-11-28 18:30:13 +00:00

Red/green: Docs only: Syncs BCPack history counts, bcpack_tool.py codec/flag syntax and the tile-mode rule in docs/textures.md with tools/bcpack_tables.py, bcpack_tool.py and tex_headers.py on main.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure. Docs checked by a separate reviewer against the code on main.
AI-assisted (Claude Code, Claude Opus 5.5)

Red/green: Docs only: Syncs BCPack history counts, bcpack_tool.py codec/flag syntax and the tile-mode rule in docs/textures.md with tools/bcpack_tables.py, bcpack_tool.py and tex_headers.py on main. Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure. Docs checked by a separate reviewer against the code on main. AI-assisted (Claude Code, Claude Opus 5.5)
Sign in to join this conversation.
No description provided.