Skip to content

[upstream #1736] Tests: skip gpu_raw_window_view_reaches_its_top without SM 6.6 - #392

Open
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1736
Open

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1736

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner

gpu_raw_window_view_reaches_its_top compiles a cs_6_6 shader using ResourceDescriptorHeap, but its local device() helper opened any D3D_FEATURE_LEVEL_12_0 hardware adapter without checking D3D_SHADER_MODEL_6_6. On pre-SM 6.6 D3D12 GPUs (such as AMD Radeon RX 580 / Polaris), CreateComputePipelineState panicked with E_INVALIDARG (0x80070057) instead of skipping.

Check D3D12_FEATURE_SHADER_MODEL >= D3D_SHADER_MODEL_6_6 in heap_window_tests::device() and print agility::format_no_sm66_message (matching runner::init) before returning None so skip_test("no GPU") runs cleanly.

What is in it

  • crates/xcl/src/gpu/recomp/heap_window_tests.rs: check D3D12_FEATURE_SHADER_MODEL for D3D_SHADER_MODEL_6_6 in device(), logging format_no_sm66_message and returning None on pre-SM 6.6 adapters.

Tested

  • Hardware / OS / Rust: AMD Radeon RX 580 2048SP (driver 31.0.21925.1001, Feature Level 12_0 / pre-SM 6.6), AMD Ryzen 7 5700X 8-Core Processor, Windows 10 Home Single Language build 19045, rustc 1.100.0 (0ef1bc386 2026-11-09), DXC dxcompiler 1.8.2502.11 (dxil 1.8.2502.11), debug build.
  • Before fix on origin/main (9039900): cargo test -p xcl --lib gpu_raw_window_view_reaches_its_top panicked at heap_window_tests.rs:100 with HRESULT(0x80070057).
  • After fix (4e8d019): cargo test -p xcl --lib gpu_raw_window_view_reaches_its_top -- --nocapture logs AMD Radeon RX 580 2048SP: no SM 6.6, prints SKIPPED ...: no GPU, and passes (1 passed, 0 failed).
  • cargo test --workspace -- --test-threads=4 on 4e8d019: 858 passed, 0 failed, 42 ignored (243 SKIPPED GPU tests on RX 580).

Regression run

  • Not needed: test-only change in crates/xcl/src/gpu/recomp/heap_window_tests.rs.

Not tested

  • SM 6.6 hardware execution of gpu_raw_window_view_reaches_its_top (host GPU is RX 580, pre-SM 6.6).
  • Retail Xbox Series X|S titles.

AI use

  • Antigravity (Gemini 4 Carbon): diagnosed the failure on RX 580, wrote the fix and PR description, and ran the workspace test suite under the user's direction.

Mirror of xcl-dev#1736 (auto-synced, do not edit).

heap_window_tests::device() opened any D3D_FEATURE_LEVEL_12_0 adapter without checking D3D_SHADER_MODEL_6_6, causing CreateComputePipelineState on its cs_6_6 shader to panic with E_INVALIDARG (0x80070057) on pre-SM 6.6 D3D12 GPUs such as Radeon RX 580. Check D3D12_FEATURE_SHADER_MODEL and return None with format_no_sm66_message so skip_test runs.

Assisted-by: Antigravity (Gemini 4 Carbon)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants