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

Open
github-bot wants to merge 1 commit from github-bot/gh-2427 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-27 03:17 UTC · original
ubiquitarianism:docs/textures-bcpack-tables-and-cli → main · +15 −11 · 1 files · 1 commits · open

Claimed in the coordination issue as: DOC-TEXTURES-BCPACK-CLI (#1608)

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)
**@⁠Andretuta** on GitHub · 2026-11-27 03:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2427) `ubiquitarianism:docs/textures-bcpack-tables-and-cli` → `main` · +15 −11 · 1 files · 1 commits · open Claimed in the coordination issue as: DOC-TEXTURES-BCPACK-CLI (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### 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)*
Update built-in BC1/BC4/BC5 history counts against tools/bcpack_tables.py, reconcile the
descriptor mode tiling note with tools/tex_headers.py, and document bcpack_tool.py
--codec, --history, and --provisional flags.

AI-assisted: Antigravity gemini-4-neon.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:20:04 +00:00
Author
Owner

@⁠tiguan26 on GitHub · 2026-11-27 06:03 UTC · original · approved these changes

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>.

**@⁠tiguan26** on GitHub · 2026-11-27 06:03 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2427#pullrequestreview-6084162322) · **approved these changes** 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>`.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2427/head:github-bot/gh-2427'
git switch 'github-bot/gh-2427'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2427'
git switch 'github-bot/gh-2427'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2427'
git switch 'github-bot/gh-2427'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2427'
git switch 'main'
git merge --squash 'github-bot/gh-2427'
git switch 'main'
git merge --ff-only 'github-bot/gh-2427'
git switch 'main'
git merge 'github-bot/gh-2427'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.