Tests: skip offline compute PSO checks when D3D12 is unavailable #1353

Open
gurvancampion wants to merge 1 commit from upstream-pr/1363 into main
gurvancampion commented 2026-11-24 15:15:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gurvancampion on 2026-11-24T15:15:18Z.


When Vulkan is unavailable under GE-Proton 11-12, the first compute integration test fails to initialize DXVK and XCL caches its fallback backend. The offline pipeline-cache test then probes DXGI again, where DXVK faults and aborts the test binary. This change makes the offline test share the cached backend check with its sibling tests.

What is in it

  • crates/xcl/tests/gpu_compute_e2e.rs reports a GPU skip before the offline test probes wave support if the D3D12 backend is unavailable. On a supported adapter, it proceeds to the existing wave-capability and pipeline-cache checks.

Tested

  • Omarchy Linux 7.2.15, Ryzen 7 9800X3D, RTX 5090 with NVIDIA 615.78.08, GE-Proton 11-12, DXVK 3.1.1-174-gf86377680682448, DXC 1.9.2609.5. Debug x86_64-pc-windows-msvc cross-build with cargo-xwin 0.24.1 and Rust 1.99.0. Vulkan disabled for these runs.
  • cargo xwin test --locked --target x86_64-pc-windows-msvc -p xcl --test gpu_compute_e2e -- --test-threads=4 --nocapture with DXVK's DXGI and no Vulkan ICD. Base 930e8b4 reports two skips, then the process exits with status 5 after a second CreateDXGIFactory2. Head 3afeda5 completes with 3 harness passes, 0 failures, 0 ignored and all 3 tests marked SKIPPED for no GPU. The offline test run alone reports one skip.
  • cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 with Wine's built-in DXGI and renderer=no3d. Both revisions report 737 harness passes, 14 failures, 41 ignored and 108 distinct skips. The same tests fail and skip on both revisions. The offline test reports no GPU at the shared backend check.

Regression run

  • Scope is limited to the compute integration tests.

Not tested

  • Native Windows, GPU-backed compute execution, and retail titles.

AI use

  • Claude Code (Claude Opus 5.5) set up the Linux build and gathered the initial logs. OpenAI Codex (GPT-6) isolated the failure, wrote the test change, ran the before/after checks, and drafted the PR description. Antigravity (Gemini 4 Neon) ran the final verification and PR-template check. The author reviewed the diff and description before opening the PR.
<!-- greyfinch-sync:ivall/xcl:issue:5474922022 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1363). Originally posted by [gurvancampion](https://github.com/gurvancampion) on 2026-11-24T15:15:18Z. --- When Vulkan is unavailable under GE-Proton 11-12, the first compute integration test fails to initialize DXVK and XCL caches its fallback backend. The offline pipeline-cache test then probes DXGI again, where DXVK faults and aborts the test binary. This change makes the offline test share the cached backend check with its sibling tests. **What is in it** - `crates/xcl/tests/gpu_compute_e2e.rs` reports a GPU skip before the offline test probes wave support if the D3D12 backend is unavailable. On a supported adapter, it proceeds to the existing wave-capability and pipeline-cache checks. **Tested** - Omarchy Linux 7.2.15, Ryzen 7 9800X3D, RTX 5090 with NVIDIA 615.78.08, GE-Proton 11-12, DXVK 3.1.1-174-gf86377680682448, DXC 1.9.2609.5. Debug `x86_64-pc-windows-msvc` cross-build with cargo-xwin 0.24.1 and Rust 1.99.0. Vulkan disabled for these runs. - `cargo xwin test --locked --target x86_64-pc-windows-msvc -p xcl --test gpu_compute_e2e -- --test-threads=4 --nocapture` with DXVK's DXGI and no Vulkan ICD. Base `930e8b4` reports two skips, then the process exits with status 5 after a second `CreateDXGIFactory2`. Head `3afeda5` completes with 3 harness passes, 0 failures, 0 ignored and all 3 tests marked `SKIPPED` for no GPU. The offline test run alone reports one skip. - `cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4` with Wine's built-in DXGI and `renderer=no3d`. Both revisions report 737 harness passes, 14 failures, 41 ignored and 108 distinct skips. The same tests fail and skip on both revisions. The offline test reports `no GPU` at the shared backend check. **Regression run** - Scope is limited to the compute integration tests. **Not tested** - Native Windows, GPU-backed compute execution, and retail titles. **AI use** - Claude Code (Claude Opus 5.5) set up the Linux build and gathered the initial logs. OpenAI Codex (GPT-6) isolated the failure, wrote the test change, ran the before/after checks, and drafted the PR description. Antigravity (Gemini 4 Neon) ran the final verification and PR-template check. The author reviewed the diff and description before opening the PR.
futurepro62 commented 2026-11-24 16:07:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T15:26:55Z.


Full-suite run, since this PR has no test report yet. Tested exact head 3afeda5 (on its base 930e8b4).

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, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 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 iGPU of the 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 ignored, no skips.

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:7136042948 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1363#issuecomment-7136042948). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T15:26:55Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `3afeda5` (on its base `930e8b4`). **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, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **751 passed, 0 failed, 41 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 iGPU of the 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **751 passed, 0 failed, 41 ignored**, no skips. **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-24 17:06:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T16:28:15Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7137715805 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1363#issuecomment-7137715805). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T16:28:15Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. Thanks!
DavidM1911 commented 2026-11-26 05:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:03:18Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7183138797 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1363#issuecomment-7183138797). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T05:03:18Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
github-actions[bot] commented 2026-12-01 02:31:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:31:54Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7298716509 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1363#issuecomment-7298716509). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:31:54Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 05:31:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:31:27Z.


Triage (#1607) – head 3d035cf

#1469 adds the same backend check to this test, but after wave64_programs_supported() and as part of a larger rewrite; here it goes before that probe, which is the point (no second DXGI probe after the backend failed). Main does not have the check in offline_compute_pipeline_is_reused_by_a_second_process yet.
No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7301861114 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1363#issuecomment-7301861114). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:31:27Z. --- **Triage (#1607)** – head 3d035cf #1469 adds the same backend check to this test, but after `wave64_programs_supported()` and as part of a larger rewrite; here it goes before that probe, which is the point (no second DXGI probe after the backend failed). Main does not have the check in `offline_compute_pipeline_is_reused_by_a_second_process` yet. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
grathepic commented 2026-12-03 01:04:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by grathepic on 2026-12-03T01:04:27Z.


merge-check

  • base: 078358a058
  • head: 3d035cfb6f
  • merge: clean (git diff --check exit 0)
  • build: cargo +1.98.1-x86_64-pc-windows-msvc build --offline --locked --workspace — exit 0 (36 pre-existing warnings in xcl lib)
  • tests:
    • Targeted real-GPU verification under XCL_REQUIRE_GPU=mesh (cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked -p xcl --test gpu_compute_e2e -- --exact offline_compute_pipeline_is_reused_by_a_second_process --nocapture, with XCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin): 1 passed, 0 failed, 0 ignored (1.84s, 0 skips).
    • Full workspace (cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked --workspace --no-fail-fast -- --test-threads=4, with XCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin): 3005 passed, 1 failed, 52 ignored across 44 harnesses; 27 SKIPPED (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps, 1 no dxil.dll, 1 cannot disable the driver cache (Windows Developer Mode required)). All 9 tests in tests\gpu_compute_e2e.rs passed. The single failure was the unrelated pre-existing late-release flake in tests\gpu_two_pass_cache_e2e.rs:584 (releasing the title PSOs releases their two-pass state, left: 1, right: 0), a separate integration test binary untouched by this PR.
  • title run: not required (Tier 0 test-only PR; +6/-0 in crates/xcl/tests/gpu_compute_e2e.rs, zero production code or dependency changes)
  • review: Read full diff (+6/-0) and surrounding gpu_compute_e2e.rs. Guard runs under SERIAL before runner::wave64_programs_supported() and uses the standard runner::skip_test("no GPU") reason, preventing a second DXGI probe when backend() != Backend::Real while leaving real-GPU execution unchanged. Non-blocking note: two newer tests added on main since this PR's base (split_compute_prefers_the_offline_whole_pipeline and offline_split_compute_pipeline_is_reused_by_a_second_process) do not yet have the same guard and could receive it in a follow-up. No blocking overlaps in #1607.
  • performance: not applicable (test-only)
  • verdict: safe to merge
  • hardware / tool and model: NVIDIA GeForce RTX 3080 (driver 32.0.16.2140), AMD Ryzen 7 5800X3D, Windows 11 (10.0.26300.0), Rust 1.98.1-x86_64-pc-windows-msvc, DXC 1.9.0.5512 (VulkanSDK, no dxil.dll) / Antigravity, Gemini 4 Neon
<!-- greyfinch-sync:ivall/xcl:comment:7363919205 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1363#issuecomment-7363919205). Originally posted by [grathepic](https://github.com/grathepic) on 2026-12-03T01:04:27Z. --- merge-check - base: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a - head: 3d035cfb6fcddab965a8de4e46279ad3d74c133b - merge: clean (`git diff --check` exit 0) - build: `cargo +1.98.1-x86_64-pc-windows-msvc build --offline --locked --workspace` — exit 0 (36 pre-existing warnings in `xcl` lib) - tests: - Targeted real-GPU verification under `XCL_REQUIRE_GPU=mesh` (`cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked -p xcl --test gpu_compute_e2e -- --exact offline_compute_pipeline_is_reused_by_a_second_process --nocapture`, with `XCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin`): 1 passed, 0 failed, 0 ignored (1.84s, 0 skips). - Full workspace (`cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked --workspace --no-fail-fast -- --test-threads=4`, with `XCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin`): 3005 passed, 1 failed, 52 ignored across 44 harnesses; 27 SKIPPED (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps, 1 no dxil.dll, 1 cannot disable the driver cache (Windows Developer Mode required)). All 9 tests in `tests\gpu_compute_e2e.rs` passed. The single failure was the unrelated pre-existing late-release flake in `tests\gpu_two_pass_cache_e2e.rs:584` (`releasing the title PSOs releases their two-pass state`, `left: 1, right: 0`), a separate integration test binary untouched by this PR. - title run: not required (Tier 0 test-only PR; `+6/-0` in `crates/xcl/tests/gpu_compute_e2e.rs`, zero production code or dependency changes) - review: Read full diff (`+6/-0`) and surrounding `gpu_compute_e2e.rs`. Guard runs under `SERIAL` before `runner::wave64_programs_supported()` and uses the standard `runner::skip_test("no GPU")` reason, preventing a second DXGI probe when `backend() != Backend::Real` while leaving real-GPU execution unchanged. Non-blocking note: two newer tests added on `main` since this PR's base (`split_compute_prefers_the_offline_whole_pipeline` and `offline_split_compute_pipeline_is_reused_by_a_second_process`) do not yet have the same guard and could receive it in a follow-up. No blocking overlaps in #1607. - performance: not applicable (test-only) - verdict: safe to merge - hardware / tool and model: NVIDIA GeForce RTX 3080 (driver 32.0.16.2140), AMD Ryzen 7 5800X3D, Windows 11 (10.0.26300.0), Rust 1.98.1-x86_64-pc-windows-msvc, DXC 1.9.0.5512 (VulkanSDK, no dxil.dll) / Antigravity, Gemini 4 Neon
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1363:upstream-pr/1363'
git switch 'upstream-pr/1363'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1363'
git switch 'upstream-pr/1363'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1363'
git switch 'upstream-pr/1363'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1363'
git switch 'main'
git merge --squash 'upstream-pr/1363'
git switch 'main'
git merge --ff-only 'upstream-pr/1363'
git switch 'main'
git merge 'upstream-pr/1363'
git push origin 'main'
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!1353
No description provided.