[PR #187] wave64_halves: a vote on EXEC ends with a new EXEC, plus GPU test ps_w64_c_vote_rewrite (SHADER-820) #239

Open
opened 2026-11-26 20:17:14 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/187
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9919


📝 Commits (6)

  • 7bfba13 wave64_halves: a rewritten vote mask leaves a stale vote, reported as unsafe-vote-branch
  • e877a6f GPU test ps_w64_c_vote_rewrite: a vote whose mask is rewritten before its branch
  • 8738952 Merge origin/main: keep main's SHADER-820 rule, this PR now adds its GPU fixture
  • 2dd34ba wave64_halves: a vote on EXEC ends when EXEC gets a new value that leaves SCC alone (SHADER-820)
  • 6fedb88 GPU test ps_w64_c_vote_exec: a vote on EXEC whose EXEC is restored before the branch (SHADER-820)
  • 54d8cd3 Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

7 files changed (+109 additions, -2 deletions)

View changed files

📝 docs/design.md (+1 -1)
➕ runtime/test/shaders/ps_w64_c_vote_exec.asm (+31 -0)
➕ runtime/test/shaders/ps_w64_c_vote_rewrite.asm (+33 -0)
📝 runtime/test/shaders/w64_graphics.py (+2 -0)
📝 tests/semantic/test_wave64_halves_soundness.py (+31 -0)
📝 tests/test_wave64_halves_fixtures.py (+2 -0)
📝 tools/wave64_halves.py (+9 -1)

📄 Description

Carried over from old PR 9919 by LouisRiverstone in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9919, 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-820: the GPU fixture for the rewritten-vote-mask rule.

Status after main moved. The rule itself is on main as 2cbc8e046, which is this PR's first commit: a vote on a mask ends when the mask register is rewritten before the branch, so the branch is tier C tainted-branch. main's tests now expect that result. This PR had later changed it to a "stale vote" reported as unsafe-vote-branch, but only to satisfy an older test. Both tiers are C, so the change is dropped, and tools/wave64_halves.py, docs/design.md and tests/semantic are main's.

Re-submission of #4620. #4620 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 #4620 by: theswiss24 (two GPUs in a Dell Latitude 5501), Atomic258 (3.15.2), kapitche (WSL2 Ubuntu), sperm (RX 9070 XT), SweatierKey (Linux), AwkGrep256 (Linux), KkelebekK (780M), sennecools (main 561b65a8) on Windows 11 with AM), lunarminus (760M).

No game files.

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


🔄 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/187 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9919` --- ### 📝 Commits (6) - [`7bfba13`](https://github.com/ubiquitarianism/leonida/commit/7bfba131209a5360a0e938cb5970f27ec4f52bf8) wave64_halves: a rewritten vote mask leaves a stale vote, reported as unsafe-vote-branch - [`e877a6f`](https://github.com/ubiquitarianism/leonida/commit/e877a6f4d31da5dc2e3a6a931bab7b27ae9ba81a) GPU test ps_w64_c_vote_rewrite: a vote whose mask is rewritten before its branch - [`8738952`](https://github.com/ubiquitarianism/leonida/commit/8738952f64f4de1a87e27481c75c10961da8c152) Merge origin/main: keep main's SHADER-820 rule, this PR now adds its GPU fixture - [`2dd34ba`](https://github.com/ubiquitarianism/leonida/commit/2dd34ba5f331ba0474c95fb13cacedd8da93e4f9) wave64_halves: a vote on EXEC ends when EXEC gets a new value that leaves SCC alone (SHADER-820) - [`6fedb88`](https://github.com/ubiquitarianism/leonida/commit/6fedb883b285f3e33a12e62a61595f95add4d845) GPU test ps_w64_c_vote_exec: a vote on EXEC whose EXEC is restored before the branch (SHADER-820) - [`54d8cd3`](https://github.com/ubiquitarianism/leonida/commit/54d8cd32ee56bd3ba4b0fe524c73bf45cc22fb47) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **7 files changed** (+109 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+1 -1) ➕ `runtime/test/shaders/ps_w64_c_vote_exec.asm` (+31 -0) ➕ `runtime/test/shaders/ps_w64_c_vote_rewrite.asm` (+33 -0) 📝 `runtime/test/shaders/w64_graphics.py` (+2 -0) 📝 `tests/semantic/test_wave64_halves_soundness.py` (+31 -0) 📝 `tests/test_wave64_halves_fixtures.py` (+2 -0) 📝 `tools/wave64_halves.py` (+9 -1) </details> ### 📄 Description > Carried over from **old PR 9919** by `LouisRiverstone` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9919`, 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-820: the GPU fixture for the rewritten-vote-mask rule. **Status after `main` moved.** The rule itself is on `main` as `2cbc8e046`, which is this PR's first commit: a vote on a mask ends when the mask register is rewritten before the branch, so the branch is tier C `tainted-branch`. `main`'s tests now expect that result. This PR had later changed it to a "stale vote" reported as `unsafe-vote-branch`, but only to satisfy an older test. Both tiers are C, so the change is dropped, and `tools/wave64_halves.py`, `docs/design.md` and `tests/semantic` are `main`'s. Re-submission of `#4620`. `#4620` 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 `#4620` by: theswiss24 (two GPUs in a Dell Latitude 5501), Atomic258 (3.15.2), kapitche (WSL2 Ubuntu), sperm (RX 9070 XT), SweatierKey (Linux), AwkGrep256 (Linux), KkelebekK (780M), sennecools (main 561b65a8) on Windows 11 with AM), lunarminus (760M). No game files. AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with `main`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#239
No description provided.