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

Merged
simplesmenterafael merged 1 commit from upstream-pr/1783 into main 2026-11-25 19:19:26 +00:00
simplesmenterafael commented 2026-11-24 20:37:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by simplesmenterafael on 2026-11-24T20:37:04Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:6590924675 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1783). Originally posted by [simplesmenterafael](https://github.com/simplesmenterafael) on 2026-11-24T20:37:04Z. --- `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.
Ctrl-Alt-Haze commented 2026-11-24 21:30:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Ctrl-Alt-Haze on 2026-11-24T21:20:41Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7144804506 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7144804506). Originally posted by [Ctrl-Alt-Haze](https://github.com/Ctrl-Alt-Haze) on 2026-11-24T21:20:41Z. --- **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.
futurepro62 commented 2026-11-24 23:08:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T22:22:16Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7146146271 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7146146271). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T22:22:16Z. --- 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.
DavidM1911 commented 2026-11-25 00:08:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T23:36:02Z.


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:7147584867 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7147584867). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T23:36:02Z. --- 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!
JJAutoCompare commented 2026-11-25 05:08:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:25:59Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7152837299 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7152837299). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T04:25:59Z. --- # 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.
upstream-sync closed this pull request 2026-11-25 20:07:16 +00:00
ivall commented 2026-11-25 20:08:33 +00:00 (Migrated from github.com)

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


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.

<!-- greyfinch-sync:ivall/xcl:comment:7172138613 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1783#issuecomment-7172138613). Originally posted by [ivall](https://github.com/ivall) on 2026-11-25T19:19:29Z. --- 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.
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!1773
No description provided.