Tests: skip D3D12 WARP fallback when Wine lacks the adapter #1411
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1411
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@gurvancampion on GitHub · 2026-11-24 15:42 UTC · original
gurvancampion:topic/wine-warp-tests→main· +93 −26 · 10 files · 2 commits · openTen 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.@futurepro62 on GitHub · 2026-11-24 15:55 UTC · original · edited 2026-11-24 16:03 UTC
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
@DavidM1911 on GitHub · 2026-11-24 17:08 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
@Toons29 on GitHub · 2026-11-25 03:29 UTC · original
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.@DavidM1911 on GitHub · 2026-11-26 05:13 UTC · original
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
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.