Shader tests: the permute test skips a device with shorter waves #1856

Open
kais7654 wants to merge 1 commit from upstream-pr/1858 into main
kais7654 commented 2026-11-24 23:32:48 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kais7654 on 2026-11-24T23:32:48Z.


The permute test's program declares the console's wave of 32, which a device with smaller waves refuses; its pipeline then fails for a known reason (the debug layer: "Shader wants wave lane count of 32 but maximum wave lane count for device is 16" on Intel, "is 4" on WARP — issue #1829), and the test fails instead of skipping. The test host now asks the device's wave lane counts (D3D12_FEATURE_DATA_D3D12_OPTIONS1, new Host::wave_lanes()), and the permute test skips a device whose WaveLaneCountMax is under 32. A device that refuses for no stated reason keeps failing the test.

On this machine (GeForce RTX 5070 + WARP fallback): the permute ran on the GeForce; WARP (4 lanes) skipped with the new message. The repo's other GPU test failures are the documented ones of #1829, untouched.

Note: #1857 (Ingenioeren, same minute) covers the 64-bit image atomics skip of #1829 — this PR deliberately leaves that test alone.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6593571367 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1858). Originally posted by [kais7654](https://github.com/kais7654) on 2026-11-24T23:32:48Z. --- The permute test's program declares the console's wave of 32, which a device with smaller waves refuses; its pipeline then fails for a known reason (the debug layer: "Shader wants wave lane count of 32 but maximum wave lane count for device is 16" on Intel, "is 4" on WARP — issue #1829), and the test fails instead of skipping. The test host now asks the device's wave lane counts (D3D12_FEATURE_DATA_D3D12_OPTIONS1, new Host::wave_lanes()), and the permute test skips a device whose WaveLaneCountMax is under 32. A device that refuses for no stated reason keeps failing the test. On this machine (GeForce RTX 5070 + WARP fallback): the permute ran on the GeForce; WARP (4 lanes) skipped with the new message. The repo's other GPU test failures are the documented ones of #1829, untouched. Note: #1857 (Ingenioeren, same minute) covers the 64-bit image atomics skip of #1829 — this PR deliberately leaves that test alone.
catminou4 commented 2026-11-25 00:06:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T23:52:20Z.

Review: APPROVED


Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (70564ae), cargo test -p victory-shader --locked → 118 passed, 0 failed. GPU execution tests are #[cfg(all(test, windows))] and run only on Windows.

Permute test skips devices with shorter waves: test-harness capability gate — same theme as #1857.

<!-- greyfinch-sync:Marvisak/VIctory:review:6049334097 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1858#pullrequestreview-6049334097). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T23:52:20Z. **Review:** APPROVED --- Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (70564ae), cargo test -p victory-shader --locked → 118 passed, 0 failed. GPU execution tests are #[cfg(all(test, windows))] and run only on Windows. Permute test skips devices with shorter waves: test-harness capability gate — same theme as #1857.
Marvisak commented 2026-11-25 02:06:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:37:15Z.


Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: crates/victory-shader/src/emit/synthetic_tests.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149759604 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1858#issuecomment-7149759604). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:37:15Z. --- <!-- victory-triage v1 head=2abb2301ed6bcf1c4066f4c5147ea03b6ee43a56 verdict=needs-rebase at=2026-11-25T01:37:14Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: `crates/victory-shader/src/emit/synthetic_tests.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
Headache3318 commented 2026-11-25 02:06:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Headache3318 on 2026-11-25T01:40:21Z.


Tested on Linux (Arch, kernel 7.3.5, 3× RTX 4090 driver 620.73.04), Rust 1.98.1 (pinned). PR head 2abb230 applied cleanly onto current main ccfb029.

  • cargo test -p victory-shader --locked: 118 passed, 0 failed, 1 ignored. All tests pass.
  • cargo clippy -p victory-shader --all-targets -- -D warnings: 3 errors in test code (pre-existing on main, which has 4). The PR does not introduce new clippy warnings.

Not tested: Windows MSVC build, the title itself. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149821216 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1858#issuecomment-7149821216). Originally posted by [Headache3318](https://github.com/Headache3318) on 2026-11-25T01:40:21Z. --- Tested on Linux (Arch, kernel 7.3.5, 3× RTX 4090 driver 620.73.04), Rust 1.98.1 (pinned). PR head `2abb230` applied cleanly onto current `main` `ccfb029`. - `cargo test -p victory-shader --locked`: 118 passed, 0 failed, 1 ignored. All tests pass. - `cargo clippy -p victory-shader --all-targets -- -D warnings`: 3 errors in test code (pre-existing on main, which has 4). The PR does not introduce new clippy warnings. Not tested: Windows MSVC build, the title itself. AI-assisted.
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/1858:upstream-pr/1858'
git switch 'upstream-pr/1858'

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/1858'
git switch 'upstream-pr/1858'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1858'
git switch 'upstream-pr/1858'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1858'
git switch 'main'
git merge --squash 'upstream-pr/1858'
git switch 'main'
git merge --ff-only 'upstream-pr/1858'
git switch 'main'
git merge 'upstream-pr/1858'
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
Marvisak/VIctory!1856
No description provided.