Tests: skip the WARP frame-dump test where WARP is unavailable #957
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!957
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/957/head"
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?
@vakaobr on GitHub · 2026-11-24 09:29 UTC · original
vakaobr:tests/warp-skip→main· +7 −1 · 1 files · 1 commits · merged 2026-11-25 19:19 UTCpresent::frame_dump_tests::mapped_frame_dump_distinguishes_dark_bright_and_undecoded_contentuses the WARP adapter to exercisewrite_frame's decoder without a physical GPU. Apple's D3DMetal (macOS under CrossOver) has no WARP:EnumWarpAdapterreturns 0x887A0004 (DXGI_ERROR_UNSUPPORTED) and theunwrap()panics, so the test fails there onmain(reported in #258). With this change it reportsSKIPPED …: no WARPthroughrunner::skip_testand returns, like the other d3d12x tests that need a device. Part of #258.What is in it
crates/xcl/src/hle/d3d12x/present.rs(test module only):EnumWarpAdapter().unwrap()becomes a match that callscrate::gpu::recomp::runner::skip_test("no WARP")and returns on error.Tested
x86_64-pc-windows-gnu(mingw-w64 GCC 16.2.0), debug, DXC 1.9.2609. Head3c43506onmain077ce40.cargo test -p xcl --lib --target x86_64-pc-windows-gnu --no-run, then the test binary in the bottle with--exact hle::d3d12x::present::frame_dump_tests::mapped_frame_dump_distinguishes_dark_bright_and_undecoded_content --test-threads=1 --nocapture: 1 passed, 0 failed, withSKIPPED …: no WARP. WithXCL_REQUIRE_GPU=wave64the same run fails (0 passed, 1 failed), asskip_testdoes for every reason other than "no mesh shaders".main's CI already runs this test'sunwrap()without a panic, soEnumWarpAdaptersucceeds there and the skip branch is not taken.9aec53d,cargo test --workspace -- --test-threads=4: 713 passed, 3 failed, 41 ignored, the 3 failures being VRAM contention they attribute to the base before #923, and the frame-dump test runs on WARP without skipping (@eizispark, https://github.com/ivall/xcl/pull/957#issuecomment-7128047924). On a second M5 Pro (x86_64-pc-windows-gnullvm, release), the test fails onmain077ce40and skips withno WARPat this head (@mikebuckets171, https://github.com/ivall/xcl/pull/957#issuecomment-7129276112).Regression run
The diff is test-only (inside
#[cfg(test)] mod frame_dump_testsinpresent.rs). The pair below is @mikebuckets171's, pasted unchanged from https://github.com/ivall/xcl/pull/957#issuecomment-7129276112: M5 Pro, CrossOver 26 + D3DMetal,x86_64-pc-windows-gnullvmrelease, 60 s on a retail title, a fresh data root per run. On this hostmainpresents nothing, so the pair shows only that the change alters nothing about a run.main:
this PR:
Not tested
AI use
077ce40, switched it torunner::skip_test, reran the test on the Mac at3c43506and wrote this description.@vakaobr on GitHub · 2026-11-24 09:33 UTC · original
@ivall this is a test-only diff inside
#[cfg(test)] mod frame_dump_testsinpresent.rs, soPR checksasks for a smoke pair (#452). The workflow handles atest-onlylabel, but the label doesn't exist in the repo yet, so it would need creating before it can be applied. If you'd rather have a smoke pair, @Kalmarv or @mikebuckets171, I'd be grateful for one ofmain077ce40against3c43506. I can't make it myself, because I don't own a title. I'd paste it into the description unchanged, credited to you.@eizispark on GitHub · 2026-11-24 09:54 UTC · original
Hardware check of
3c43506fbdf9872a1efb7ead385c0604c354e52e(verified clean merge withmain9aec53d): pass.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), release + test profilecargo test --workspace -- --test-threads=4:713 passed, 3 failed, 41 ignored(GPU tests skipped on this adapter:none; the 3 failures are pre-#923 concurrent VRAM contention on base077ce40inhle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixelsplus two downstreamPoisonErrors intransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memory)cargo test -p xcl --lib hle::d3d12x -- --test-threads=1:115 passed, 0 failed, 1 ignoredhle::d3d12x::present::frame_dump_tests::mapped_frame_dump_distinguishes_dark_bright_and_undecoded_content(--nocapture):ok(runs natively via Windows WARP without hittingskip_test)Regression run
main(6bac4b4):PR (
3c43506):Not tested
EnumWarpAdapteris unavailable (macOS CrossOver / D3DMetal); wave32-only GPUs; gameplay past the menusAI use
scripts/smoke.ps1harness on this machine and formatted this report.@SlopTart on GitHub · 2026-11-24 10:38 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
3c43506onto main9aec53d, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 717 passed, 7 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows. WARP frame-dump skip logic green (WARP absent here, test correctly skipped).Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@mikebuckets171 on GitHub · 2026-11-24 10:48 UTC · original
The pair you asked for, plus the test's own before/after - which is the part that actually shows something.
Host: MacBook Pro M5 Pro (48 GB), macOS 27.2.1, CrossOver 26 with D3DMetal (adapter reports "AMD Compatibility Mode"), Rosetta 2, Rust 1.100.0,
x86_64-pc-windows-gnullvmwith LLVM-MinGW 20261117 (clang 23.1.6),--release --locked, test binaries run under Wine. Each test in its own process:--exact <full test path> --nocapture --test-threads=1.The named test, both sides (
hle::d3d12x::present::frame_dump_tests::mapped_frame_dump_distinguishes_dark_bright_and_undecoded_content, the lib test binary has 696 tests on both sides):main077ce40: FAILED -panicked at crates/xcl/src/hle/d3d12x/present.rs:1099:67(theunwrap()onEnumWarpAdapter),test result: FAILED. 0 passed; 1 failed, exit0x65.3c43506:SKIPPED hle::d3d12x::present::frame_dump_tests::mapped_frame_dump…: no WARP,test result: ok. 1 passed; 0 failed, exit0x0.So the skip fires here, on the
gnullvmtarget as well as on the GNU and clang-cl builds the other Mac reports describe, and it reaches the skip from the same host answer: a plain D3D12 program (no XCL) on this host getsCreateDXGIFactory2→ S_OK,EnumWarpAdapter→0x887A0004(DXGI_ERROR_UNSUPPORTED), andEnumAdapters1enumerates exactly one adapter - vendor0x1002device0x66af, 40960 MB dedicated, flags0x0, the D3DMetal shim's compatibility adapter. There is no second adapter to fall back to.xcl-smoke v1pair, 60 s each, fresh data root per run (XCL_RUN_SECONDS=60, so the title ends itself and the frame/present counts are its own):Read them for what they are: on this host a
mainbuilt straight from upstream makes 0 presents and 0 draws at all, so a Mac pair for a test-only diff can only show that the change alters nothing about a run - identical counts,exit 0x0on both sides, no crashes, no device removals. The test result above is the evidence that matters here, and it is the one the PR's own description predicted.Host: macOS 27.2.1 (Apple silicon, M5 Pro), CrossOver 26, D3DMetal; local inference unloaded and the bottle's wineserver stopped for each run. AI use: GPT-6 Luna built both trees, ran the test and the two 60 s runs, and drafted this comment; the counts and codes are from those runs.
@shortside on GitHub · 2026-11-24 11:57 UTC · original
Test report from a second Mac, head
3c43506against its merge base077ce40.Tested
x86_64-pc-windows-msvcwith clang-cl / lld-link 23.1.6 and an xwin SDK 10.0.26100, Rust 1.100.0, debug. The lib test binary run under Wine, one test per process (--exact --nocapture, 60 s cap).hle::d3d12x::present::frame_dump_tests::mapped_frame_dump_distinguishes_dark_bright_and_undecoded_content: base failed (unwrap()on0x887A0004); head passed withSKIPPED … no WARP.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 12:36 UTC · original
Independent verification, merged onto current
main384f7f7locally (clean merge).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
cargo test -p xcl --lib frame_dump: 2 passed, 0 failed — WARP is available on this machine so the skip branch is not taken; theEnumWarpAdaptererror path now correctly callsskip_test("no WARP")for hosts without it.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@JJAutoCompare on GitHub · 2026-11-25 05:38 UTC · original
Empirical test report (
3c43506f)PR #957 head
3c43506fbdf9872a1efb7ead385c0604c354e52e.Hardware / environment
rustc 1.100.0 (0ef1bc386 2026-11-09)and DXC1.9.2609.5 (01b62ad47). Cargo used the unoptimized test profile with incremental compilation and debug info disabled.Commands and results
cargo test --workspace --no-runexited 0 outside the Arc lock. It built the workspace test executables without running them.Ran the compiled
xcllibrary test executable underInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. The exact invocation inside the lock was:The focused command exited 0. The log recorded 1 passed, 0 failed, 0 ignored, 0 skipped and 695 filtered out. The fixture finished in 0.03 s. Skip count comes from case-sensitive
SKIPPEDlines.Observed behavior
WARP enumeration succeeded on this Windows host. The fixture passed its assertions for dark and bright mapped content, row padding, preservation of frame stats after an intermediate target dump, and the distinction between undecoded and dark content.
Not tested
The full GPU workspace suite and game smoke runs were omitted. The WARP-unavailable skip branch was untested because WARP was available on this host.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr957-focused.logand published.@ivall on GitHub · 2026-11-25 19:19 UTC · original
Merging: skips with a reason where WARP does not exist.
Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
main2898511with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1and_3, which fail the same way onmain);hle::d3d12xon 16 threads 5 times, no failure.AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.
@DavidM1911 on GitHub · 2026-11-26 03:23 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