rdna2spirv: fix Wave64 halves partial destination read-modify-write #265
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!265
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/265/head"
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?
@kotekompotek on GitHub · 2026-11-24 02:55 UTC · original
kotekompotek:contribution/wave64-halves-partial-dst-rmw→main· +443 −3 · 2 files · 1 commits · merged 2026-11-24 03:28 UTC…t asymmetric DPP row_mask
Fixes partial-destination writes in tools/wave64_halves.py that dropped prior taint and falsely marked divergent VGPRs uniform (miscompiling v_readlane_b32 in rdna2spirv.py):
Verified locally (CPU-only):
Conflicts:
docs/design.md
Conflicts:
tools/wave64_halves.py
Claimed in the coordination issue as:
Depends on:
What and why
Tested
AI-assisted:
Checklist
docs/design.md, with how it was confirmed.@akimfomin on GitHub · 2026-11-24 10:16 UTC · original · edited 2026-11-24 11:13 UTC
PortBridge matched this change to Reforge #15 at the same source commit
ad1e53e. The Reforge review has a follow-up that may be useful here too. For a full-EXEC three-component D16 load, X/Y overwrite the first destination word and only the second word retains part of its prior value. The follow-up tracks those words separately and keeps the conservative behavior for masked writes.I independently reran the focused synthetic suite on Windows 11 / Python 3.12.14. The shared commit passed its original 13 tests. With the Reforge follow-up applied, 15 tests passed. Adding its two tests without its code change reproduced seven failing subchecks, including the three constant-output cases for each of MUBUF and MTBUF. My verification here is CPU test coverage, and the original Reforge review has the GPU readback.
If this follow-up is still useful on current Continued, the two regression tests are a small way to check that before adapting the change. AI-assisted with Codex.
Update on Continued main
21625bca8c67. I repeated the same CPU-only check there. The unmodified branch passed 13/13. The two tests alone exposed the same seven misclassifications. With ecox982745’s code, all 15 tests passed. Would a standalone PR against Continued main, preserving the original authorship, be useful?