mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #91] [CLOSED] shader_ir: the docstring gives "invalid" as a count, which is what parse_file returns #143
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#143
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
c20a113shader_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
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):The module docstring of
tools/shader_ir.pysaysparse_file(path)returns"invalid": [pc...], a list of PCs.parse_fileactually storestail.count("invalid instruction encoding"), an integer, and every caller treats it as one (tests/test_rdna2_decode.pycompares it with0nine times). Docstring only; no behaviour change.Tested:
tests/test_rdna2_decode.pygives the same result with and without the change (15 passed; the one failure,test_parity_with_llvm_mc_on_shader_fixtures, fails identically onmainon 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.