mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1093] [CLOSED] rdna2spirv: write out a carry-out subtract of a register from itself (AMD Windows driver crash) (OLD-10058) #1128
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#1128
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/1093
Author: @LewisCodesWebsites
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:carry/old-10058📝 Commits (1)
a17d0e7rdna2spirv: 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: OLD-10058 (#14)
Supersedes: #324 (carries forward old PR 10058 by @wail-arch, rebased onto
main3aa975421; their commit and authorship are kept, the only change is resolving adocs/design.mdconflict by adding the new contract row next to main's current pc-tail row)What and why
v_sub_co_u32/v_subrev_co_u32(and the_ci_forms) with the same register as both sources were translated toOpISubBorrow %x %x, and AMD's Windows driver crashes (0xC0000005inamdvlk64.dll) creating a native wave64 pipeline in which that borrow predicates a subgroup shuffle. x - x is always 0 with no borrow, so this writes the result out directly. It is the same crash as my finding in #14.Tested
python -I tools/crosslane_fuzz.py --ext --dpp --wave 64 --modes native --w64-native --no-maskdata --programs 1000 --seed 20261124:maingives 6 harness errors (exit 3221225477, all inamdvlk64.dllat the same offset); this branch gives 0 (999 match, 1 hyp_only).mainand runs with 0 mismatches on this branch.tests/semantic/test_sub_co_same_operand.py: 6/6.scripts/run_semantic_tests.py tests/semantic: 6173 of 6174 pass; the one failure,test_image_cube_store_glc, fails the same way onmainon this machine (FileNotFoundErrorlaunching a tool at line 282), so it is unrelated.tests/test_docs_design_rows.py,tests/test_docs_table_rows.py,tests/test_docs_links.py,tests/test_text_write_line_endings.py: OK.GPUs tested: AMD Radeon 660M (RDNA2 iGPU, gfx1035), Adrenalin 32.0.21045.1000 (Vulkan driver 2.0.353), Windows 11 26200
AI-assisted: yes (Claude and OpenCode ran the rebase and the tests; I reviewed them)
Checklist
mainand merges cleanly.docs/design.md, with how it was confirmed.🤖 Generated with Claude Code
https://claude.ai/code/session_015pRhqKwVhndiVZH8fawThh
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.