Shader tests: skip the one-thread LDS min/max test on WARP #435

Open
sennecools wants to merge 1 commit from upstream-pr/435 into main
sennecools commented 2026-11-25 00:49:11 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by sennecools on 2026-11-25T00:49:11Z.


What

ds_min_max_f32_order_floats_and_return_the_old_value runs on the hardware device only, because WARP refuses the pipeline of a one-thread program that declares a wave size of 32. With VICTORY_WARP=1 the test host (Host::new) makes that device WARP as well, so the test failed in pipeline creation ("The parameter is incorrect"). It now returns early under VICTORY_WARP=1, as the differential tests do for wave sizes WARP does not run. Nothing changes on a hardware run.

Tested

  • VICTORY_WARP=1 cargo test -p victory-shader --lib ds_min_max: the test reports the skip and passes, and ds_min_max_f32_are_atomic_across_waves still runs on WARP and passes.
  • Under VICTORY_WARP=1, cargo test -p victory-shader --lib drops from 4 failures to 3. The remaining three were already failing on main and are unrelated to this change. One of them, v_permlane16_and_x16_read_the_lanes_their_selectors_pick, is hardware-only in the same way.
  • Not run on a hardware GPU. cargo clippy -p victory-shader --all-targets -- -D warnings and the xtask policy tests: clean.

AI-assisted.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6594542293 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/435). Originally posted by [sennecools](https://github.com/sennecools) on 2026-11-25T00:49:11Z. --- ## What `ds_min_max_f32_order_floats_and_return_the_old_value` runs on the hardware device only, because WARP refuses the pipeline of a one-thread program that declares a wave size of 32. With `VICTORY_WARP=1` the test host (`Host::new`) makes that device WARP as well, so the test failed in pipeline creation ("The parameter is incorrect"). It now returns early under `VICTORY_WARP=1`, as the differential tests do for wave sizes WARP does not run. Nothing changes on a hardware run. ## Tested - `VICTORY_WARP=1 cargo test -p victory-shader --lib ds_min_max`: the test reports the skip and passes, and `ds_min_max_f32_are_atomic_across_waves` still runs on WARP and passes. - Under `VICTORY_WARP=1`, `cargo test -p victory-shader --lib` drops from 4 failures to 3. The remaining three were already failing on main and are unrelated to this change. One of them, `v_permlane16_and_x16_read_the_lanes_their_selectors_pick`, is hardware-only in the same way. - Not run on a hardware GPU. `cargo clippy -p victory-shader --all-targets -- -D warnings` and the xtask policy tests: clean. AI-assisted.
chatgpt-codex-connector[bot commented 2026-11-25 01:12:05 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:49:26Z.


Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T00:50:37.331977Z 1516013 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:fxceless/victory-fork:comment:7148915697 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/435#issuecomment-7148915697). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T00:49:26Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"15160132722b884afaeea9045195e4146d3d98a8","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-25T00:50:37.331977Z">2026-11-25T00:50:37.331977Z</relative-time> | `1516013` | 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>
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/435:upstream-pr/435'
git switch 'upstream-pr/435'

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/435'
git switch 'upstream-pr/435'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/435'
git switch 'upstream-pr/435'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/435'
git switch 'main'
git merge --squash 'upstream-pr/435'
git switch 'main'
git merge --ff-only 'upstream-pr/435'
git switch 'main'
git merge 'upstream-pr/435'
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
fxceless/victory-fork!435
No description provided.