Tests: skip gpu_raw_window_view_reaches_its_top without SM 6.6 #1726

Closed
kilvynsilveira-tech wants to merge 1 commit from upstream-pr/1736 into main
kilvynsilveira-tech commented 2026-11-24 20:03:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by kilvynsilveira-tech on 2026-11-24T20:03:42Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:6590341059 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1736). Originally posted by [kilvynsilveira-tech](https://github.com/kilvynsilveira-tech) on 2026-11-24T20:03:42Z. --- `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.
nnonno91 commented 2026-11-24 21:09:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-24T20:21:43Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7143427442 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1736#issuecomment-7143427442). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-24T20:21:43Z. --- 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.
DavidM1911 commented 2026-11-24 23:08:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:44:01Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7146580246 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1736#issuecomment-7146580246). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T22:44:01Z. --- 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!
upstream-sync closed this pull request 2026-11-25 20:07:15 +00:00
ivall commented 2026-11-25 20:08:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:32:24Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7172437483 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1736#issuecomment-7172437483). Originally posted by [ivall](https://github.com/ivall) on 2026-11-25T19:32:24Z. --- 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

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
xcl-dev/xcl!1726
No description provided.