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

Closed
github-bot wants to merge 1 commit from gh-pr/91/head into gh-pr/91/base
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:16 UTC · original
ubiquitarianism:old-pr/9820 → main · +2 −1 · 1 files · 1 commits · closed without merging

Carried over from old PR 9820 by KoLolX3 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9820, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
KoLolX3: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

The module docstring of tools/shader_ir.py says parse_file(path) returns "invalid": [pc...], a list of PCs. parse_file actually stores tail.count("invalid instruction encoding"), an integer, and every caller treats it as one (tests/test_rdna2_decode.py compares it with 0 nine times). Docstring only; no behaviour change.

Tested: tests/test_rdna2_decode.py gives the same result with and without the change (15 passed; the one failure, test_parity_with_llvm_mc_on_shader_fixtures, fails identically on main on this machine).

Found by a local qwen3.8 review pass over tools/, checked by hand. AI-assisted (Claude Code).

**@⁠Andretuta** on GitHub · 2026-11-24 02:16 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/91) `ubiquitarianism:old-pr/9820` → `main` · +2 −1 · 1 files · 1 commits · closed without merging > Carried over from **old PR 9820** by `KoLolX3` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9820`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `KoLolX3`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): The module docstring of `tools/shader_ir.py` says `parse_file(path)` returns `"invalid": [pc...]`, a list of PCs. `parse_file` actually stores `tail.count("invalid instruction encoding")`, an integer, and every caller treats it as one (`tests/test_rdna2_decode.py` compares it with `0` nine times). Docstring only; no behaviour change. Tested: `tests/test_rdna2_decode.py` gives the same result with and without the change (15 passed; the one failure, `test_parity_with_llvm_mc_on_shader_fixtures`, fails identically on `main` on this machine). Found by a local qwen3.8 review pass over `tools/`, checked by hand. AI-assisted (Claude Code).
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:44:05 +00:00
github-bot closed this pull request 2026-11-26 08:44:05 +00:00
Author
Owner

@⁠KoLolX3 on GitHub · 2026-11-24 04:01 UTC · original

Author here: taken over in #365, rebased on main ece4ba5b3 and re-tested (RX 7900 XT, RADV). This draft can be closed in its favour.

**@⁠KoLolX3** on GitHub · 2026-11-24 04:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/91#issuecomment-7121640072) Author here: taken over in #365, rebased on `main` `ece4ba5b3` and re-tested (RX 7900 XT, RADV). This draft can be closed in its favour.
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-24 19:17 UTC · original

This carry-over of old upstream PR 9820 has been taken over in #365, so I'm closing this draft as #17 describes. The branch old-pr/9820 stays.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-24 19:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/91#issuecomment-7141891944) This carry-over of old upstream PR 9820 has been taken over in #365, so I'm closing this draft as #17 describes. The branch `old-pr/9820` stays. AI-assisted (Claude Code, Claude Opus 5.5).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.