Skip to content

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

Open
kais7654 wants to merge 1 commit into
Marvisak:mainfrom
kais7654:shader/skip-unsupported
Open

kais7654 wants to merge 1 commit into
Marvisak:mainfrom
kais7654:shader/skip-unsupported

Conversation

@kais7654

@kais7654 kais7654 commented Nov 24, 2026 •

Copy link
Copy Markdown

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.

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, and the test fails instead of skipping. The test host now asks
the device's wave lane counts (`D3D12_FEATURE_DATA_D3D12_OPTIONS1`,
`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 (Marvisak#1829), untouched.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@kais7654
kais7654 force-pushed the shader/skip-unsupported branch from be5c162 to 2abb230 Compare November 24, 2026 23:44
@kais7654 kais7654 changed the title Shader tests: a device lacking the feature skips its runs Shader tests: the permute test skips a device with shorter waves Nov 24, 2026

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Owner

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

@Headache3318

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants