Tests: skip D3D12 WARP fallback when Wine lacks the adapter #1401
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1411"
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:42:36Z.
Ten D3D12 unit tests panic when their hardware device attempt fails and Wine's built-in DXGI returns
E_NOTIMPLfromEnumWarpAdapter. ReportSKIPPED …: no WARPfor that specific Wine result.The frame-dump test is covered separately in #957.
What is in it
crates/xcl/src/hle/d3d12x/warp_tests.rs(wired via#[cfg(test)] mod warp_tests;inmod.rs) shares the WineE_NOTIMPLcheck across the ten test sites inbind.rs,console_heap.rs,cpu_writes.rs,fence_x.rs,list_x.rs,real.rs(2 sites), andsparse.rs(3 sites), and adds a unit test (warp_adapter_absence_requires_wine_and_not_implemented) for HRESULT and host classification. Native Windows errors, other enumeration errors, and WARP device creation failures still fail the test.Tested
renderer=no3d. Debugx86_64-pc-windows-msvccross-build with Rust 1.99.0 and cargo-xwin 0.24.1.cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4on base930e8b4and headfd77d7e:930e8b4: 737 passed, 14 failed, 41 ignored (108 explicit skips).fd77d7e: 748 passed, 4 failed, 41 ignored (118 explicit skips, +10no WARP). The 4 remaining failures are the frame-dump test (#957), XMA2 (#890), synthetic-title e2e, and PLS quota (#810 / #937).--nocapture: all 10 changed tests reportSKIPPED …: no WARP; all 10 fail whenXCL_REQUIRE_GPU=wave64orXCL_REQUIRE_GPU=meshis set. The new unit test passed and failed against a negative control that rejected every HRESULT.rustfmt --check --edition 2021 crates/xcl/src/hle/d3d12x/warp_tests.rsandgit diff --check origin/main HEAD: passed.Regression run
The diff is compiled only under
#[cfg(test)](no runtime code changes).python3 scripts/pr_check.py --local --test-onlyreturnsdescription ok; the hosted check requires the maintainertest-onlylabel to waive retail smoke for this revision.Not tested
AI use
gpt-6.2-sol) checked upstream, wrote the patch and regression test, ran the before/after comparisons, and drafted this description. Antigravity (Gemini 4 Neon) coordinated, reviewed the diff, and verified the PR checks. The author reviewed the diff and description before opening the PR.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T15:55:30Z.
Full-suite run, since this PR has no test report yet. Tested exact head
fd77d7e(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.warp_adapter_absence_requires_wine_and_not_implemented.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T17:08:31Z.
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 Toons29 on 2026-11-25T03:29:11Z.
Regression run of
fd77d7e2on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:13:06Z.
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 Anon64 on 2026-11-27T03:45:52Z.
Linux / Wine check of #1411 at head
4d7233e7ee3e765d8b50a599943b95cc9d5ea32e, merged ontomain8b957bec6f82495aec940944c6bf47faa02db590(no conflicts), againstmainalone.Setup
x86_64-pc-windows-gnu(Rust 1.100.0, mingw-w64 GCC 13), debug; tests run through Wine as the target runner. DXC 1.9.2609.5 viaXCL_DXC_DIR.cargo test -p xcl --lib --target x86_64-pc-windows-gnu hle::d3d12x -- --test-threads=4Results
mainmain+ #1411On
mainthe failures are the WARP-backed tests (sparse×5,readback_routing×2,fence_x,cpu_writes,console_heap,bind,list_xdepth bias,presentcompositor), each with0x80004001 Not implementedfrom WARP. With #1411 each printsSKIPPED …: no WARPand passes; the remaining skips are the existingno GPUones.Not tested
AI use
Claude Code (Claude Opus 5.5) set up the container, ran the tests and wrote this report.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:39:42Z.
Triage (#1607) – head
4d7233eNo open PR makes the same change; merged #957 only made a different WARP frame-dump test in present.rs skip, and the compositor test changed here still unwraps EnumWarpAdapter on main.
The skip only applies under Wine with E_NOTIMPL, so Windows behaviour is unchanged. main now has more EnumWarpAdapter().expect("WARP") sites than the PR covers (e.g. gpu_times.rs, bind.rs, list_x.rs, console_heap.rs), so a rebase needs to cover them too; the PR description check is failing.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.