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

Open
opened 2026-11-26 20:17:48 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/365
Author: @KoLolX3
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: docs/shader-ir-invalid-count


📝 Commits (1)

  • 7e1216c 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

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


🔄 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/365 **Author:** [@KoLolX3](https://github.com/KoLolX3) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/shader-ir-invalid-count` --- ### 📝 Commits (1) - [`7e1216c`](https://github.com/ubiquitarianism/leonida/commit/7e1216cacec7e0208c079b8b027c08e772cd44fd) 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 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#417
No description provided.