Repository navigation
Tests: skip D3D12 WARP fallback when Wine lacks the adapter - #1411
gurvancampion wants to merge 1 commit into
Conversation
Wine's built-in DXGI returns E_NOTIMPL from EnumWarpAdapter. Report the missing adapter with the shared GPU skip helper, which still fails in strict mode. Keep other enumeration and WARP device creation errors fatal. Assisted-by: Codex (GPT-6, exact variant unavailable)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
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 (Tests: skip the WARP frame-dump test where WARP is unavailable #957), XMA2 (XAudio2: GetState names the oldest queued buffer when the host gives none #890), synthetic-title e2e, and PLS quota (Tests: pls_quota expects ERROR_PATH_NOT_FOUND for a missing path below S:\, Wine returns ERROR_FILE_NOT_FOUND #810 / Tests: accept Wine's ERROR_FILE_NOT_FOUND in pls_quota #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.