rdna2spirv: fix Wave64 halves partial destination read-modify-write #265
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/265"
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?
Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T02:55:47Z.
…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.Imported from ubiquitarianism/leonida. Originally posted by akimfomin on 2026-11-24T10:16:33Z.
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?