Tests: skip gpu_raw_window_view_reaches_its_top without SM 6.6 #1736

Closed
github-bot wants to merge 1 commit from gh-pr/1736/head into gh-pr/1736/base
Owner

@⁠kilvynsilveira-tech on GitHub · 2026-11-24 20:03 UTC · original
kilvynsilveira-tech:tests/skip-heap-window-without-sm66 → main · +9 −1 · 1 files · 1 commits · closed without merging

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.
**@⁠kilvynsilveira-tech** on GitHub · 2026-11-24 20:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/1736) `kilvynsilveira-tech:tests/skip-heap-window-without-sm66` → `main` · +9 −1 · 1 files · 1 commits · closed without merging `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.
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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:03:02 +00:00
github-bot closed this pull request 2026-11-26 05:03:02 +00:00
Author
Owner

@⁠nnonno91 on GitHub · 2026-11-24 20:21 UTC · original

Independent SM 6.6 hardware check at 4e8d019043c5fcdce54d2a4927e7afc2f177383c. The affected test ran and passed on the Radeon iGPU and RTX 5090.

Tested

  • Windows 11 25H2 build 26200.9974, Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62), NVIDIA GeForce RTX 5090 (32.0.16.1742), Rust 1.100.0 MSVC, Windows SDK DXC 1.8.2502.11, debug/test profiles. Adapters selected with XCL_ADAPTER.
  • cargo build --workspace --locked passed. With XCL_REQUIRE_GPU=wave64 to make hardware or DXC skips fail, cargo test --locked -p xcl --lib gpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top -- --exact --nocapture reported 1 passed, 0 failed, 0 ignored, 0 skips on each adapter. The GPU ran the 248 readback assertions, including both ends of the view.
  • cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output reported 858 passed, 0 failed, 42 ignored on AMD and on the clean RTX 5090 rerun. Explicit skips counted as passes: heap_window_out_of_memory_falls_back_to_the_switch_form on both (heap windows off). NVIDIA also skipped gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no native wave64).
  • The first RTX 5090 workspace run reported 845 passed, 13 failed, 42 ignored, with 11 explicit skips. The affected raw-window test passed in that run too. The first reported failure was gpu_sparse_vram_descriptors_buffers_and_xmem (submit 1, lane 0 read 0, expected 1077), followed by device-removed errors and lock-poison failures. That test passed when rerun by itself with cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_sparse_vram_descriptors_buffers_and_xmem -- --exact --nocapture and in the clean workspace rerun.

Not tested

Pre-SM 6.6 hardware, retail titles, or the cause of the initial NVIDIA device error.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) ran and checked the tests and wrote this report.

**@⁠nnonno91** on GitHub · 2026-11-24 20:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1736#issuecomment-7143427442) Independent SM 6.6 hardware check at `4e8d019043c5fcdce54d2a4927e7afc2f177383c`. The affected test ran and passed on the Radeon iGPU and RTX 5090. **Tested** - Windows 11 25H2 build 26200.9974, Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62), NVIDIA GeForce RTX 5090 (32.0.16.1742), Rust 1.100.0 MSVC, Windows SDK DXC 1.8.2502.11, debug/test profiles. Adapters selected with `XCL_ADAPTER`. - `cargo build --workspace --locked` passed. With `XCL_REQUIRE_GPU=wave64` to make hardware or DXC skips fail, `cargo test --locked -p xcl --lib gpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top -- --exact --nocapture` reported **1 passed, 0 failed, 0 ignored, 0 skips** on each adapter. The GPU ran the 248 readback assertions, including both ends of the view. - `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output` reported **858 passed, 0 failed, 42 ignored** on AMD and on the clean RTX 5090 rerun. Explicit skips counted as passes: `heap_window_out_of_memory_falls_back_to_the_switch_form` on both (heap windows off). NVIDIA also skipped `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no native wave64). - The first RTX 5090 workspace run reported **845 passed, 13 failed, 42 ignored**, with 11 explicit skips. The affected raw-window test passed in that run too. The first reported failure was `gpu_sparse_vram_descriptors_buffers_and_xmem` (submit 1, lane 0 read 0, expected 1077), followed by device-removed errors and lock-poison failures. That test passed when rerun by itself with `cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_sparse_vram_descriptors_buffers_and_xmem -- --exact --nocapture` and in the clean workspace rerun. **Not tested** Pre-SM 6.6 hardware, retail titles, or the cause of the initial NVIDIA device error. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) ran and checked the tests and wrote this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 22:44 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 22:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/1736#issuecomment-7146580246) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠ivall on GitHub · 2026-11-25 19:32 UTC · original

Closing: #1783 does the same for this test and is merged (it reports the skip through skip_test, so it is counted). Thank you for finding it and for the reports here; reopen if this covers a case #1783 does not.

AI use: Claude Code (Claude Opus 5.5) wrote this on the maintainer's behalf.

**@⁠ivall** on GitHub · 2026-11-25 19:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/1736#issuecomment-7172437483) Closing: #1783 does the same for this test and is merged (it reports the skip through `skip_test`, so it is counted). Thank you for finding it and for the reports here; reopen if this covers a case #1783 does not. AI use: Claude Code (Claude Opus 5.5) wrote this on the maintainer's behalf.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.