Tests: skip offline compute PSO checks when D3D12 is unavailable #1353
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1363"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.rsreports 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
x86_64-pc-windows-msvccross-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 --nocapturewith DXVK's DXGI and no Vulkan ICD. Base930e8b4reports two skips, then the process exits with status 5 after a secondCreateDXGIFactory2. Head3afeda5completes with 3 harness passes, 0 failures, 0 ignored and all 3 tests markedSKIPPEDfor 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=4with Wine's built-in DXGI andrenderer=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 reportsno GPUat the shared backend check.Regression run
Not tested
AI use
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 base930e8b4).Tested
cargo build --workspace, thenXCL_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.#[test]functions in the diff.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
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!
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
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
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.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 inoffline_compute_pipeline_is_reused_by_a_second_processyet.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.
Imported from ivall/xcl. Originally posted by grathepic on 2026-12-03T01:04:27Z.
merge-check
078358a0583d035cfb6fgit diff --checkexit 0)cargo +1.98.1-x86_64-pc-windows-msvc build --offline --locked --workspace— exit 0 (36 pre-existing warnings inxcllib)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, withXCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin): 1 passed, 0 failed, 0 ignored (1.84s, 0 skips).cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked --workspace --no-fail-fast -- --test-threads=4, withXCL_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 intests\gpu_compute_e2e.rspassed. The single failure was the unrelated pre-existing late-release flake intests\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.+6/-0incrates/xcl/tests/gpu_compute_e2e.rs, zero production code or dependency changes)+6/-0) and surroundinggpu_compute_e2e.rs. Guard runs underSERIALbeforerunner::wave64_programs_supported()and uses the standardrunner::skip_test("no GPU")reason, preventing a second DXGI probe whenbackend() != Backend::Realwhile leaving real-GPU execution unchanged. Non-blocking note: two newer tests added onmainsince this PR's base (split_compute_prefers_the_offline_whole_pipelineandoffline_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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.