Tests: skip the raw heap-window view test on a device without SM 6.6 #1783

Manually merged
github merged 1 commit from gh-pr/1783/head into gh-pr/1783/base 2026-11-26 05:05:00 +00:00
Owner

@⁠simplesmenterafael on GitHub · 2026-11-24 20:37 UTC · original
simplesmenterafael:tests/heap-window-skip-without-sm66 → main · +8 −0 · 1 files · 1 commits · merged 2026-11-25 19:19 UTC

gpu_raw_window_view_reaches_its_top compiles a cs_6_6 shader that indexes ResourceDescriptorHeap, but it checked only for a GPU and DXC. On a device without SM 6.6 (Windows 10's inbox D3D12 with no Agility SDK) the pipeline is refused and the test failed instead of skipping like the runner's GPU tests:

panicked at crates\xcl\src\gpu\recomp\heap_window_tests.rs:100:14:
called `Result::unwrap()` on an `Err` value: Error { code: HRESULT(0x80070057), message: "..." }

Since cargo test stops at the first failing test binary, this also kept the integration tests from running on such a machine.

What is in it

  • crates/xcl/src/gpu/recomp/heap_window_tests.rs: check the shader model before compiling and skip with agility::format_no_sm66_message, the message the runner's tests use.

Tested

  • NVIDIA GeForce RTX 3050 (driver 32.0.16.2124), Ryzen 5 3600, Windows 10 22H2 (19045), rustc 1.100.0, debug.
  • cargo test -p xcl --lib gpu_raw_window_view_reaches_its_top:
    • with XCL_D3D12_DIR (Agility SDK v620): runs and passes, as before;
    • without it (inbox D3D12): SKIPPED gpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top: NVIDIA GeForce RTX 3050: no SM 6.6 (on Windows 10, set XCL_D3D12_DIR to a D3D12 Agility SDK folder); on main it fails as above.
  • .\scripts\test.ps1 (cargo test --workspace -- --test-threads=4) on the tree of 7cf0f9a, with the Agility SDK: 891 passed, 0 failed, 42 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), shaders::tests::pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache: Windows Developer Mode is required).

Regression run

  • Not needed: the change is in a test file only.

Not tested

  • AMD and Intel GPUs; Windows 11; a software adapter (the test already skips WARP before this check).

AI use

  • Claude Code, Claude Opus 5.5: found the cause, wrote the change and this description, and ran the tests on the hardware above.
**@⁠simplesmenterafael** on GitHub · 2026-11-24 20:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/1783) `simplesmenterafael:tests/heap-window-skip-without-sm66` → `main` · +8 −0 · 1 files · 1 commits · merged 2026-11-25 19:19 UTC `gpu_raw_window_view_reaches_its_top` compiles a `cs_6_6` shader that indexes `ResourceDescriptorHeap`, but it checked only for a GPU and DXC. On a device without SM 6.6 (Windows 10's inbox D3D12 with no Agility SDK) the pipeline is refused and the test failed instead of skipping like the runner's GPU tests: ``` panicked at crates\xcl\src\gpu\recomp\heap_window_tests.rs:100:14: called `Result::unwrap()` on an `Err` value: Error { code: HRESULT(0x80070057), message: "..." } ``` Since `cargo test` stops at the first failing test binary, this also kept the integration tests from running on such a machine. **What is in it** - `crates/xcl/src/gpu/recomp/heap_window_tests.rs`: check the shader model before compiling and skip with `agility::format_no_sm66_message`, the message the runner's tests use. **Tested** - NVIDIA GeForce RTX 3050 (driver 32.0.16.2124), Ryzen 5 3600, Windows 10 22H2 (19045), rustc 1.100.0, debug. - `cargo test -p xcl --lib gpu_raw_window_view_reaches_its_top`: - with `XCL_D3D12_DIR` (Agility SDK v620): runs and passes, as before; - without it (inbox D3D12): `SKIPPED gpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top: NVIDIA GeForce RTX 3050: no SM 6.6 (on Windows 10, set XCL_D3D12_DIR to a D3D12 Agility SDK folder)`; on main it fails as above. - `.\scripts\test.ps1` (`cargo test --workspace -- --test-threads=4`) on the tree of 7cf0f9a, with the Agility SDK: 891 passed, 0 failed, 42 ignored. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache: Windows Developer Mode is required). **Regression run** - Not needed: the change is in a test file only. **Not tested** - AMD and Intel GPUs; Windows 11; a software adapter (the test already skips WARP before this check). **AI use** - Claude Code, Claude Opus 5.5: found the cause, wrote the change and this description, and ran the tests on the hardware above.
gpu_raw_window_view_reaches_its_top compiles a cs_6_6 shader that indexes
ResourceDescriptorHeap, but checked only for a GPU and DXC. On a device
without SM 6.6 (Windows 10's inbox D3D12, no Agility SDK) the pipeline is
refused and the test failed with 0x80070057 at CreateComputePipelineState
instead of skipping like the runner's GPU tests. It now checks the shader
model first and skips with the same message (agility::format_no_sm66_message).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:04:58 +00:00
github manually merged commit 7cf0f9a82a into gh-pr/1783/base 2026-11-26 05:05:00 +00:00
Author
Owner

@⁠Ctrl-Alt-Haze on GitHub · 2026-11-24 21:20 UTC · original

Tested (head 7cf0f9a82a25140a5c37c054d785af3c07ccb93f, NVIDIA GeForce RTX 5070 Ti, driver 32.0.16.2135, Wave32, AMD Ryzen 9 5950X, Windows 11 Build 26340, rustc 1.99.1, DXC 1.8.2502.11, debug, synthetic tests only):

  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 891 passed, 0 failed, 42 ignored (SKIPPED GPU tests: 2 (no wave64) — gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware; 1 (no heap windows) — heap_window_out_of_memory_falls_back_to_the_switch_form). Note: RTX 5070 Ti supports SM 6.6, so gpu_raw_window_view_reaches_its_top ran and passed without hitting the non-SM 6.6 skip path.

AI use: Antigravity (Google DeepMind; exact model version not exposed to agent) ran the test suite and formatted the results.

**@⁠Ctrl-Alt-Haze** on GitHub · 2026-11-24 21:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7144804506) **Tested** (head `7cf0f9a82a25140a5c37c054d785af3c07ccb93f`, NVIDIA GeForce RTX 5070 Ti, driver 32.0.16.2135, Wave32, AMD Ryzen 9 5950X, Windows 11 Build 26340, `rustc 1.99.1`, DXC `1.8.2502.11`, debug, synthetic tests only): - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): **891 passed, 0 failed, 42 ignored** (`SKIPPED` GPU tests: `2 (no wave64)` — `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`; `1 (no heap windows)` — `heap_window_out_of_memory_falls_back_to_the_switch_form`). Note: RTX 5070 Ti supports SM 6.6, so `gpu_raw_window_view_reaches_its_top` ran and passed without hitting the non-SM 6.6 skip path. AI use: Antigravity (Google DeepMind; exact model version not exposed to agent) ran the test suite and formatted the results.
Author
Owner

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

Adding an AMD GPU (RDNA2, native wave64) to the report above, which has none, with an NVIDIA run alongside. Tested exact head 7cf0f9a (on its base 4178e88).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 889 passed, 0 failed, 42 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • No new #[test] functions in the diff.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 891 passed, 0 failed, 42 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)).
  • Two tests were skipped with --skip on NVIDIA. Both fail on main 7f7e768 too, not because of this PR: under XCL_REQUIRE_GPU=mesh, runner::skip_test turns their skips into failures. heap_window_out_of_memory_falls_back_to_the_switch_form skips when XCL_HEAP_WINDOWS is unset (#1651), and shaders::tests::pso_measurement_compiles_an_exact_synthetic_record skipped because Developer Mode was off. The AMD run does not set XCL_REQUIRE_GPU, so there both just print SKIPPED.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 22:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7146146271) Adding an AMD GPU (RDNA2, native wave64) to the report above, which has none, with an NVIDIA run alongside. Tested exact head `7cf0f9a` (on its base `4178e88`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record`: **889 passed, 0 failed, 42 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - No new `#[test]` functions in the diff. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **891 passed, 0 failed, 42 ignored**. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), `pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)). - Two tests were skipped with `--skip` on NVIDIA. Both fail on main `7f7e768` too, not because of this PR: under `XCL_REQUIRE_GPU=mesh`, `runner::skip_test` turns their skips into failures. `heap_window_out_of_memory_falls_back_to_the_switch_form` skips when `XCL_HEAP_WINDOWS` is unset (#1651), and `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` skipped because Developer Mode was off. The AMD run does not set `XCL_REQUIRE_GPU`, so there both just print SKIPPED. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 23:36 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 23:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7147584867) 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

@⁠JJAutoCompare on GitHub · 2026-11-25 04:25 UTC · original

PR #1783 — Arc A770 verification

Head 7cf0f9a82a25140a5c37c054d785af3c07ccb93f, detached and clean before and after testing. The only changed file, crates/xcl/src/gpu/recomp/heap_window_tests.rs, adds a skip before shader compilation when the D3D12 shader-model query fails or returns below SM 6.6.

STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 (build 26200), with an AMD family 23/model 113 CPU (~3.9 GHz) and Intel Arc A770 (16 GB, driver 32.0.101.9175). DXC reported 1.9.2609.5. Rust was 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Builds used the unoptimized profiles with debug info and incremental compilation disabled.

Tested

  • cargo build --workspace and cargo test --workspace --no-run exited 0 outside the Arc mutex. The second command compiled 19 test binaries.
  • cargo test -p xcl --lib gpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top -- --exact --nocapture returned 1 passed, 0 failed, 0 ignored, 0 skipped. The SM 6.6 check succeeded and the shader verified readback at both ends of the 4 GiB sparse window. The test also passed in the workspace suite.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 exited 101. Across all 20 result lines (19 binaries and doc-tests), libtest reported 873 passed, 18 failed, 42 ignored. The log had 7 lines beginning with SKIPPED , which are included in libtest's pass count and excluded from coverage. Both test runs used Invoke-ArcTest.ps1, XCL_ADAPTER=A770, and RUST_TEST_NOCAPTURE=1.

Workspace failures and skips

  • The library had 17 failures. 13 reported CreateComputePipelineState error 0x80070057. Four failed assertions for FMA, implicit-LOD sampling, packed VALU output, and pixel wave reduction.
  • The e2e title failed its dynamic depth-bias check (RSSetDepthBiasX #94).
  • Skips covered wave64 (2), heap-window OOM fallback (1), tiled tier below 2 (1), missing debug-layer support (2), and driver-cache disabling (1).

Not tested

The SM 6.6 skip branch on unsupported devices, other adapters, a matched main baseline, and retail-title smoke runs.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1783-suite.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 04:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7152837299) # PR #1783 — Arc A770 verification Head `7cf0f9a82a25140a5c37c054d785af3c07ccb93f`, detached and clean before and after testing. The only changed file, `crates/xcl/src/gpu/recomp/heap_window_tests.rs`, adds a skip before shader compilation when the D3D12 shader-model query fails or returns below SM 6.6. STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 (build 26200), with an AMD family 23/model 113 CPU (~3.9 GHz) and Intel Arc A770 (16 GB, driver 32.0.101.9175). DXC reported 1.9.2609.5. Rust was 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Builds used the unoptimized profiles with debug info and incremental compilation disabled. **Tested** - `cargo build --workspace` and `cargo test --workspace --no-run` exited 0 outside the Arc mutex. The second command compiled 19 test binaries. - `cargo test -p xcl --lib gpu::recomp::heap_window_tests::gpu_raw_window_view_reaches_its_top -- --exact --nocapture` returned 1 passed, 0 failed, 0 ignored, 0 skipped. The SM 6.6 check succeeded and the shader verified readback at both ends of the 4 GiB sparse window. The test also passed in the workspace suite. - `cargo test --workspace --no-fail-fast -- --test-threads=4` exited 101. Across all 20 result lines (19 binaries and doc-tests), libtest reported **873 passed, 18 failed, 42 ignored**. The log had **7 lines beginning with `SKIPPED `**, which are included in libtest's pass count and excluded from coverage. Both test runs used `Invoke-ArcTest.ps1`, `XCL_ADAPTER=A770`, and `RUST_TEST_NOCAPTURE=1`. **Workspace failures and skips** - The library had 17 failures. 13 reported `CreateComputePipelineState` error `0x80070057`. Four failed assertions for FMA, implicit-LOD sampling, packed VALU output, and pixel wave reduction. - The e2e title failed its dynamic depth-bias check (`RSSetDepthBiasX` #94). - Skips covered wave64 (2), heap-window OOM fallback (1), tiled tier below 2 (1), missing debug-layer support (2), and driver-cache disabling (1). **Not tested** The SM 6.6 skip branch on unsupported devices, other adapters, a matched main baseline, and retail-title smoke runs. **AI use** T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1783-suite.log` and published.
Author
Owner

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

Merging: skips with a counted reason on a device without SM 6.6.

Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, main 2898511 with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1 and _3, which fail the same way on main); hle::d3d12x on 16 threads 5 times, no failure.

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

**@⁠ivall** on GitHub · 2026-11-25 19:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7172138613) Merging: skips with a counted reason on a device without SM 6.6. Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, `main` `2898511` with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (`fuzz_validate_and_gpu_1` and `_3`, which fail the same way on `main`); `hle::d3d12x` on 16 threads 5 times, no failure. AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.
This discussion has been locked. Commenting is limited to contributors.
No description provided.