[PR #91] [CLOSED] shader_ir: the docstring gives "invalid" as a count, which is what parse_file returns #143

Closed
opened 2026-11-26 20:16:56 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/91
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: old-pr/9820


📝 Commits (1)

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

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 tools/shader_ir.py (+2 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/91 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `old-pr/9820` --- ### 📝 Commits (1) - [`c20a113`](https://github.com/ubiquitarianism/leonida/commit/c20a1136d1ae7f49ac1c753960843615dc7f1294) shader_ir: the docstring gives "invalid" as a count, which is what parse_file returns ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/shader_ir.py` (+2 -1) </details> ### 📄 Description > 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:16:56 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#143
No description provided.