shader_ir: the docstring gives "invalid" as a count, which is what parse_file returns #365

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

@⁠KoLolX3 on GitHub · 2026-11-24 03:56 UTC · original
KoLolX3:docs/shader-ir-invalid-count → main · +2 −1 · 1 files · 1 commits · open

Takes over draft #91 (carried over from the original repo by its author, KoLolX3). Corrects the shader_ir.parse_file docstring: invalid counts invalid instruction encoding lines rather than holding a list of PCs.

Rebased on main 237deb64. Verified python -I tests/test_rdna2_decode.py (20 tests), the full semantic suite (487 files, 6,279 tests, zero failed files), compileall, make_game.py --help, check_no_game_data.py for the changed file, and git diff --check on Linux. No GPU test is needed for this documentation-only change; synthetic tests only, no game data.

GPUs tested: n/a for this rebase.

AI-assisted: yes (Claude Code and OpenAI Codex).

**@⁠KoLolX3** on GitHub · 2026-11-24 03:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/365) `KoLolX3:docs/shader-ir-invalid-count` → `main` · +2 −1 · 1 files · 1 commits · open Takes over draft #91 (carried over from the original repo by its author, KoLolX3). Corrects the `shader_ir.parse_file` docstring: `invalid` counts invalid instruction encoding lines rather than holding a list of PCs. Rebased on `main` `237deb64`. Verified `python -I tests/test_rdna2_decode.py` (20 tests), the full semantic suite (487 files, 6,279 tests, zero failed files), compileall, `make_game.py --help`, `check_no_game_data.py` for the changed file, and `git diff --check` on Linux. No GPU test is needed for this documentation-only change; synthetic tests only, no game data. GPUs tested: n/a for this rebase. AI-assisted: yes (Claude Code and OpenAI Codex).
The module docstring said parse_file returns "invalid": [pc...], a list
of PCs, but parse_file stores tail.count("invalid instruction encoding"),
and every caller (tests/test_rdna2_decode.py) compares it with 0.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:55:54 +00:00
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/365/head:github-bot/gh-365'
git switch 'github-bot/gh-365'

Merge

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