fix(victory-shader): port #448 and #435 onto the Vice-Tay base #456

Open
LooperSalty wants to merge 9 commits from upstream-pr/456 into main
LooperSalty commented 2026-11-26 23:28:33 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T23:28:33Z.


Summary

Ports two shader-translator fixes by @mauroalvare onto the Vice-Tay base (#454); their original PRs were written against the Neptune base and no longer apply.

  • #448 — v_cmp_f_* / v_cmp_tru_* on f32/f16 were emitted as fcmp false/true predicates, which suspends the device under WARP; they are now lowered as constant per-lane booleans, like the integer path. Test valu_tests::v_cmp_f_and_tru_lower_as_constant_booleans (f32 and f16, finite, infinite, qNaN, sNaN): without the fix, WARP reports the device suspended; with it, it passes.
  • #435 — DPP16/DPP8 follow RDNA 2's inactive-lane rules: a source lane off in EXEC (unless fi) or outside its row reads 0 with bound_ctrl, otherwise the destination keeps its value. Same rules as the Python reference interpreter (rdna2_exec_ext.py). Three tests in wave64_tests.rs (wave32, past a branch, wave64): without the fix they read 0xb / 0x0 instead of the console's 0xaaaa (the 0xb the author measured).

Differences from the original PRs: dpp() is changed in place in lower.rs (not moved to dpp.rs); the DPP tests run on a hardware GPU only (WARP does not take the program); one waveActiveBallot is emitted per DPP instruction without fi.

Test plan

  • cargo test --release -p victory-shader (321 passed, 4 ignored)
  • cargo build --release --workspace
  • New tests fail without the fixes and pass with them
  • CI

Source: #448, #435 (mauroalvare)

🤖 Generated with Claude Code

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:5518543348 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/456). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T23:28:33Z. --- ## Summary Ports two shader-translator fixes by @mauroalvare onto the Vice-Tay base (#454); their original PRs were written against the Neptune base and no longer apply. - **#448** — `v_cmp_f_*` / `v_cmp_tru_*` on f32/f16 were emitted as `fcmp false/true` predicates, which suspends the device under WARP; they are now lowered as constant per-lane booleans, like the integer path. Test `valu_tests::v_cmp_f_and_tru_lower_as_constant_booleans` (f32 and f16, finite, infinite, qNaN, sNaN): without the fix, WARP reports the device suspended; with it, it passes. - **#435** — DPP16/DPP8 follow RDNA 2's inactive-lane rules: a source lane off in EXEC (unless `fi`) or outside its row reads 0 with `bound_ctrl`, otherwise the destination keeps its value. Same rules as the Python reference interpreter (`rdna2_exec_ext.py`). Three tests in `wave64_tests.rs` (wave32, past a branch, wave64): without the fix they read `0xb` / `0x0` instead of the console's `0xaaaa` (the `0xb` the author measured). Differences from the original PRs: `dpp()` is changed in place in `lower.rs` (not moved to `dpp.rs`); the DPP tests run on a hardware GPU only (WARP does not take the program); one `waveActiveBallot` is emitted per DPP instruction without `fi`. ## Test plan - [x] `cargo test --release -p victory-shader` (321 passed, 4 ignored) - [x] `cargo build --release --workspace` - [x] New tests fail without the fixes and pass with them - [ ] CI Source: #448, #435 (mauroalvare) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chatgpt-codex-connector[bot] commented 2026-11-26 23:28:40 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T23:28:40Z.


Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T23:28:37.019009Z
We couldn’t complete this review. Comment @codex review to try again.
1f42806 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7205574007 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/456#issuecomment-7205574007). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T23:28:40Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"1f428068abe0a59fe465fc34ad3c603a99a4c079","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-26T23:28:37.019009Z">2026-11-26T23:28:37.019009Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `1f42806` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot] commented 2026-11-26 23:28:43 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T23:28:43Z.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7205574586 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/456#issuecomment-7205574586). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T23:28:43Z. --- You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/456:upstream-pr/456'
git switch 'upstream-pr/456'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/456'
git switch 'upstream-pr/456'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/456'
git switch 'upstream-pr/456'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/456'
git switch 'main'
git merge --squash 'upstream-pr/456'
git switch 'main'
git merge --ff-only 'upstream-pr/456'
git switch 'main'
git merge 'upstream-pr/456'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
LooperSalty/AnyXboxX!456
No description provided.