WIP: rdna2spirv: v_writelane_b32 reads its destination (SHADER-768) #175

Closed
leonida/mandy
Andretuta wants to merge 0 commits from old-pr/9910 into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Andretuta commented 2026-11-24 02:35:34 +00:00

Carried over from old PR 9910 by LouisRiverstone in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9910, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
LouisRiverstone: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

SHADER-768, from the "Up for grabs" table in #4257: read_before_write_vgprs counted v_writelane_b32 as a full write of its destination.

v_writelane_b32 vD, sSRC, sLANE writes one lane of vD and keeps every other lane's value. The translator's own emission loads the old vD and selects per lane. So the value vD held before is read, and a shader whose first touch of a VGPR is a writelane should report that VGPR as read before written.

Re-submission of #4297. #4297 was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current main.

Checked on #4297 by: theswiss24 (RTX 4070), JRamos1993 (RTX 5090), kapitche (Linux), javdc (Steam Deck LCD), mrloic (RTX 4060), wavehs (Apple M3 Pro), TG0000 (RX 6800), matheusfermiano-source (main 867d922f0)).

No game files.

AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with main.

> Carried over from **old PR 9910** by `LouisRiverstone` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9910`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `LouisRiverstone`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): SHADER-768, from the "Up for grabs" table in `#4257`: `read_before_write_vgprs` counted `v_writelane_b32` as a full write of its destination. `v_writelane_b32 vD, sSRC, sLANE` writes one lane of `vD` and keeps every other lane's value. The translator's own emission loads the old `vD` and selects per lane. So the value `vD` held before is read, and a shader whose first touch of a VGPR is a writelane should report that VGPR as read before written. Re-submission of `#4297`. `#4297` was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with current `main`. Checked on `#4297` by: theswiss24 (RTX 4070), JRamos1993 (RTX 5090), kapitche (Linux), javdc (Steam Deck LCD), mrloic (RTX 4060), wavehs (Apple M3 Pro), TG0000 (RX 6800), matheusfermiano-source (main 867d922f0)). No game files. AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with `main`.
LouisRiverstone commented 2026-11-24 11:10:10 +00:00

Taken over by its author in #658 (rebased on main). This draft can be closed.

Taken over by its author in #658 (rebased on main). This draft can be closed.
ubiquitarianism commented 2026-11-24 16:17:50 +00:00

Closing: replaced by #658, which is merged.

Closing: replaced by #658, which is merged.
Sign in to join this conversation.
No description provided.