[PR #930] [MERGED] rdna2spirv: write out a carry-out subtract of a register from itself (AMD Windows driver crash) (SHADER-SUB-CO-SAME) #968

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/930
Author: @fin-github
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142

Base: main ← Head: shader/sub-co-same-operand


📝 Commits (1)

  • 474dbe2 rdna2spirv: write out a carry-out subtract of a register from itself (AMD Windows driver crash)

📊 Changes

3 files changed (+216 additions, -11 deletions)

View changed files

📝 docs/design.md (+1 -0)
➕ tests/semantic/test_sub_co_same_operand.py (+194 -0)
📝 tools/rdna2spirv.py (+21 -11)

📄 Description

Claimed in the coordination issue as: SHADER-SUB-CO-SAME (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620)

Supersedes draft #324, carried over from the original repository. This is the same commit rebased onto current main, with the original author (Wail) kept and git cherry-pick -x recording where it came from. The change and its explanation are theirs; see #324 for the original description.

Rebase note: one conflict in docs/design.md, where main had rewritten the neighbouring push-constant row. I kept main's row and inserted the new carry-out row before it.

Tested

  • tests/semantic/test_sub_co_same_operand.py: 6 tests pass.
  • Full translator suite python -I scripts/run_semantic_tests.py tests/semantic: 466 files, 6114 tests, 0 failed.
  • Not yet confirmed on hardware. The crash repro (crosslane_fuzz.py --seed 880317 --wave 64 --w64-native on AMD's proprietary Windows driver 25.30, Ryzen 5 7600X iGPU, gfx1036) needs llvm-mc with the AMDGPU target, which isn't installed on this machine yet. I'll post the before/after result here.
  • python -I scripts/check_no_game_data.py on the changed files: clean.

Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online.

AI-assisted (Claude Code): rebasing, conflict resolution and test runs.


🔄 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/930 **Author:** [@fin-github](https://github.com/fin-github) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `shader/sub-co-same-operand` --- ### 📝 Commits (1) - [`474dbe2`](https://github.com/ubiquitarianism/leonida/commit/474dbe2bedf7f6d7d68057f4b9acf08431b48835) rdna2spirv: write out a carry-out subtract of a register from itself (AMD Windows driver crash) ### 📊 Changes **3 files changed** (+216 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+1 -0) ➕ `tests/semantic/test_sub_co_same_operand.py` (+194 -0) 📝 `tools/rdna2spirv.py` (+21 -11) </details> ### 📄 Description Claimed in the coordination issue as: `SHADER-SUB-CO-SAME` (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620) Supersedes draft #324, carried over from the original repository. This is the same commit rebased onto current `main`, with the original author (Wail) kept and `git cherry-pick -x` recording where it came from. The change and its explanation are theirs; see #324 for the original description. Rebase note: one conflict in `docs/design.md`, where `main` had rewritten the neighbouring push-constant row. I kept `main`'s row and inserted the new carry-out row before it. ### Tested - `tests/semantic/test_sub_co_same_operand.py`: 6 tests pass. - Full translator suite `python -I scripts/run_semantic_tests.py tests/semantic`: 466 files, 6114 tests, 0 failed. - **Not yet confirmed on hardware.** The crash repro (`crosslane_fuzz.py --seed 880317 --wave 64 --w64-native` on AMD's proprietary Windows driver 25.30, Ryzen 5 7600X iGPU, gfx1036) needs llvm-mc with the AMDGPU target, which isn't installed on this machine yet. I'll post the before/after result here. - `python -I scripts/check_no_game_data.py` on the changed files: clean. Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online. AI-assisted (Claude Code): rebasing, conflict resolution and test runs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:39 +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#968
No description provided.