Tests on Windows 10: skip four tests that need shader model 6.6 / ID3D12Device10 / an SM 6.6 WARP (#1999) #3281

Open
lerapeurdu62280-debug wants to merge 2 commits from upstream-pr/3283 into main
lerapeurdu62280-debug commented 2026-11-26 15:45:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by lerapeurdu62280-debug on 2026-11-26T15:45:19Z.


What and why

On Windows 10 without the Agility SDK (#2460 is still open), the host's D3D12 runtime stops at shader model 6.5 and has no ID3D12Device10. Three victory-gpu tests fail on every such PC, and the suite takes a minute longer:

Test What the runtime says
compute_view_marks_rebind_after_depth_twin_conversion root signature: Unsupported bit-flag set (root signature flags c00), then E_INVALIDARG. CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED and SAMPLER_HEAP_DIRECTLY_INDEXED need 6.6.
depth_bounds_control_a_title_draw The same refusal (flags c01). The test then waits 60 s for the pipeline before failing.
a_texture_written_in_one_format_reads_in_another_through_a_placed_view Without CreateCommittedResource3 the R32_UINT texture is not castable, so the R9G9B9E5 view gets a texture of its own with the memory's unordered access, which the host refuses (no host texture … format: 67 … flags: 4, E_INVALIDARG). texture_at returns None, and the test panics with round 0: a placed texture. #1999 reports this test failing on another Windows 10 PC (RX 7800 XT).

The repository already handles this for 6.6 (placed_uav_dispatch_writes_its_texture: "placed UAV dispatch needs SM 6.6"; the shader crate's "no SM 6.6 device; skipped"). This PR does the same for the three tests:

  • Host::agility_runtime() (#[cfg(test)]) checks shader model 6.6 and ID3D12Device10, and prints why when one is missing.
  • The three tests return early where it is false.
  • Where the runtime has both (Windows 11, the CI, Windows 10 with #2460 / #2878), nothing changes: they run as before.

A fourth test, in victory-shader: pops_wait_loop_exits_immediately_for_inactive_lanes did Host::new(true).expect("WARP host"). Windows 10's WARP stops at shader model 6.2 (the device supports SM 0x62 only), with or without the Agility SDK, so it failed on every run. It now skips like the other WARP tests (no SM 6.6 warp device; skipped).

This only skips tests. The runtime itself still needs #2460 on Windows 10: without it every root signature the host makes is refused, which this PR does not touch.

Tested (Windows 10 Pro 19045, AMD RX 6600, Adrenalin 32.0.21045, Rust 1.98.1)

  • The runtime here reports a highest shader model of 0x65 (6.5) and no ID3D12Device10.
  • cargo test -p victory-gpu --locked: 231 passed, 0 failed in 2.6 s. On main: 229 passed, 3 failed, 62 s.
  • --all-features: 246 passed, 0 failed.
  • Clippy -D warnings, default and --all-features: clean.
  • With the Agility SDK 1.620.2 staged (target\debug\D3D12\, #2878 merged locally on top of this PR), the runtime has 6.6 and ID3D12Device10: the three victory-gpu tests run and pass on the RX 6600 (231 passed, no "skipped" line). victory-shader goes from 214 passed / 88 failed to 302 passed, 0 failed (3 ignored) with the WARP test skipped (its only failure there was the WARP one).

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:5513044320 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3283). Originally posted by [lerapeurdu62280-debug](https://github.com/lerapeurdu62280-debug) on 2026-11-26T15:45:19Z. --- ### What and why On **Windows 10 without the Agility SDK** (#2460 is still open), the host's D3D12 runtime stops at **shader model 6.5** and has **no `ID3D12Device10`**. Three `victory-gpu` tests fail on every such PC, and the suite takes a minute longer: | Test | What the runtime says | |---|---| | `compute_view_marks_rebind_after_depth_twin_conversion` | `root signature: Unsupported bit-flag set (root signature flags c00)`, then `E_INVALIDARG`. `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED` and `SAMPLER_HEAP_DIRECTLY_INDEXED` need 6.6. | | `depth_bounds_control_a_title_draw` | The same refusal (flags `c01`). The test then **waits 60 s** for the pipeline before failing. | | `a_texture_written_in_one_format_reads_in_another_through_a_placed_view` | Without `CreateCommittedResource3` the R32_UINT texture is not castable, so the R9G9B9E5 view gets a texture of its own with the memory's unordered access, which the host refuses (`no host texture … format: 67 … flags: 4`, `E_INVALIDARG`). `texture_at` returns `None`, and the test panics with `round 0: a placed texture`. #1999 reports this test failing on another Windows 10 PC (RX 7800 XT). | The repository already handles this for 6.6 (`placed_uav_dispatch_writes_its_texture`: "placed UAV dispatch needs SM 6.6"; the shader crate's "no SM 6.6 device; skipped"). This PR does the same for the three tests: - `Host::agility_runtime()` (`#[cfg(test)]`) checks shader model 6.6 and `ID3D12Device10`, and prints why when one is missing. - The three tests return early where it is false. - **Where the runtime has both (Windows 11, the CI, Windows 10 with #2460 / #2878), nothing changes: they run as before.** A fourth test, in `victory-shader`: `pops_wait_loop_exits_immediately_for_inactive_lanes` did `Host::new(true).expect("WARP host")`. Windows 10's WARP stops at shader model 6.2 (`the device supports SM 0x62 only`), with or without the Agility SDK, so it failed on every run. It now skips like the other WARP tests (`no SM 6.6 warp device; skipped`). This only skips tests. The runtime itself still needs #2460 on Windows 10: without it every root signature the host makes is refused, which this PR does not touch. ### Tested (Windows 10 Pro 19045, AMD RX 6600, Adrenalin 32.0.21045, Rust 1.98.1) - The runtime here reports a highest shader model of 0x65 (6.5) and no `ID3D12Device10`. - `cargo test -p victory-gpu --locked`: **231 passed, 0 failed** in 2.6 s. On `main`: 229 passed, 3 failed, 62 s. - `--all-features`: 246 passed, 0 failed. - Clippy `-D warnings`, default and `--all-features`: clean. - **With the Agility SDK 1.620.2 staged** (`target\debug\D3D12\`, #2878 merged locally on top of this PR), the runtime has 6.6 and `ID3D12Device10`: the three `victory-gpu` tests **run and pass** on the RX 6600 (231 passed, no "skipped" line). `victory-shader` goes from 214 passed / 88 failed to **302 passed, 0 failed** (3 ignored) with the WARP test skipped (its only failure there was the WARP one). AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Dukestar69 commented 2026-11-26 15:47:02 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T15:47:02Z.

Review: APPROVED


Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090):

  • Host::agility_runtime() cleanly checks both D3D_SHADER_MODEL_6_6 and ID3D12Device10 so Windows 10 hosts without the Agility SDK skip the three tests that require them while Windows 11 / Agility hosts still execute all three.
  • cargo test -p victory-gpu --lib draw:: -- --test-threads=1 (RTX 5090): 20 passed, 0 failed.
  • cargo test -p victory-gpu --lib pipeline::depth_bounds_test:: -- --test-threads=1 (RTX 5090): 2 passed, 0 failed.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6077003499 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3283#pullrequestreview-6077003499). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T15:47:02Z. **Review:** APPROVED --- Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090): - `Host::agility_runtime()` cleanly checks both `D3D_SHADER_MODEL_6_6` and `ID3D12Device10` so Windows 10 hosts without the Agility SDK skip the three tests that require them while Windows 11 / Agility hosts still execute all three. - `cargo test -p victory-gpu --lib draw:: -- --test-threads=1` (RTX 5090): 20 passed, 0 failed. - `cargo test -p victory-gpu --lib pipeline::depth_bounds_test:: -- --test-threads=1` (RTX 5090): 2 passed, 0 failed. - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Dukestar69 commented 2026-11-26 15:47:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T15:47:24Z.

Review: APPROVED


Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090):

  • Host::agility_runtime() cleanly checks both D3D_SHADER_MODEL_6_6 and ID3D12Device10 so Windows 10 hosts without the Agility SDK skip the three tests that require them while Windows 11 / Agility hosts still execute all three.
  • cargo test -p victory-gpu --lib draw:: -- --test-threads=1 (RTX 5090): 20 passed, 0 failed.
  • cargo test -p victory-gpu --lib pipeline::depth_bounds_test:: -- --test-threads=1 (RTX 5090): 2 passed, 0 failed.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6077008611 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3283#pullrequestreview-6077008611). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T15:47:24Z. **Review:** APPROVED --- Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090): - `Host::agility_runtime()` cleanly checks both `D3D_SHADER_MODEL_6_6` and `ID3D12Device10` so Windows 10 hosts without the Agility SDK skip the three tests that require them while Windows 11 / Agility hosts still execute all three. - `cargo test -p victory-gpu --lib draw:: -- --test-threads=1` (RTX 5090): 20 passed, 0 failed. - `cargo test -p victory-gpu --lib pipeline::depth_bounds_test:: -- --test-threads=1` (RTX 5090): 2 passed, 0 failed. - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Jackster commented 2026-11-26 22:45:08 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Jackster on 2026-11-26T22:45:08Z.


Windows 11, 63bcca4 + this PR, Radeon RX 7900 XTX:

  • cargo test -p victory-gpu --lib: 231 passed / 0 failed / 1 ignored.
  • The gated draw test a_texture_written_in_one_format_reads_in_another_through_a_placed_view runs here without the new skip diagnostic — there is no "no shader model 6.6 or no ID3D12Device10 … skipped" line, so on this host the gate lets it through: the device reports SM 6.6 (0x66) and casts to ID3D12Device10.
  • cargo test -p victory-shader --lib --features host synthetic_tests: 11 passed, also with no skip diagnostic from the shader-side gate.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings and the same for victory-shader: clean.

The Windows 10 side — the skip path itself — cannot be exercised on this machine. Synthetic only. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7204953940 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3283#issuecomment-7204953940). Originally posted by [Jackster](https://github.com/Jackster) on 2026-11-26T22:45:08Z. --- Windows 11, `63bcca4` + this PR, Radeon RX 7900 XTX: - `cargo test -p victory-gpu --lib`: 231 passed / 0 failed / 1 ignored. - The gated draw test `a_texture_written_in_one_format_reads_in_another_through_a_placed_view` runs here **without** the new skip diagnostic — there is no "no shader model 6.6 or no ID3D12Device10 … skipped" line, so on this host the gate lets it through: the device reports SM 6.6 (`0x66`) and casts to `ID3D12Device10`. - `cargo test -p victory-shader --lib --features host synthetic_tests`: 11 passed, also with no skip diagnostic from the shader-side gate. - `cargo clippy -p victory-gpu --all-targets -- -D warnings` and the same for `victory-shader`: clean. The Windows 10 side — the skip path itself — cannot be exercised on this machine. Synthetic only. AI-assisted.
andrewpozdnakov7-jpg commented 2026-11-27 15:16:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T15:16:20Z.


I ran the four gated tests from exact c30ed86 on Windows 10 19045.6456 using two software runtimes.

Runtime View marks Placed-format view Depth bounds POPS
Inbox WARP 10.0.19041.5794 Skipped Skipped Skipped Skipped
App-local WARP 1.0.22 + Agility 1.620.2 Passed Passed Passed Passed

Each test ran in its own process. The inbox runs printed the capability skip. The app-local runs executed the synthetic draw or dispatch and passed their assertions without a skip. This includes the POPS regression, so the separate app-local WARP package can exercise it on Windows 10.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7221848961 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3283#issuecomment-7221848961). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T15:16:20Z. --- I ran the four gated tests from exact `c30ed86` on Windows 10 19045.6456 using two software runtimes. | Runtime | View marks | Placed-format view | Depth bounds | POPS | | --- | --- | --- | --- | --- | | Inbox WARP 10.0.19041.5794 | Skipped | Skipped | Skipped | Skipped | | App-local WARP 1.0.22 + Agility 1.620.2 | Passed | Passed | Passed | Passed | Each test ran in its own process. The inbox runs printed the capability skip. The app-local runs executed the synthetic draw or dispatch and passed their assertions without a skip. This includes the POPS regression, so the separate app-local WARP package can exercise it on Windows 10.
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/3283:upstream-pr/3283'
git switch 'upstream-pr/3283'

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