Skip to content

[upstream #957] Tests: skip the WARP frame-dump test where WARP is unavailable - #147

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/957
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/957

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

present::frame_dump_tests::mapped_frame_dump_distinguishes_dark_bright_and_undecoded_content uses the WARP adapter to exercise write_frame's decoder without a physical GPU. Apple's D3DMetal (macOS under CrossOver) has no WARP: EnumWarpAdapter returns 0x887A0004 (DXGI_ERROR_UNSUPPORTED) and the unwrap() panics, so the test fails there on main (reported in #258). With this change it reports SKIPPED …: no WARP through runner::skip_test and 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 calls crate::gpu::recomp::runner::skip_test("no WARP") and returns on error.

Tested

  • MacBook Pro M5 Pro (20-core GPU), 48 GB, macOS 27.2.1, CrossOver 26.3.0.39832 with D3DMetal, Rosetta 2. Rust 1.100.0, x86_64-pc-windows-gnu (mingw-w64 GCC 16.2.0), debug, DXC 1.9.2609. Head 3c43506 on main 077ce40.
  • 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, with SKIPPED …: no WARP. With XCL_REQUIRE_GPU=wave64 the same run fails (0 passed, 1 failed), as skip_test does for every reason other than "no mesh shaders".
  • On Windows, main's CI already runs this test's unwrap() without a panic, so EnumWarpAdapter succeeds there and the skip branch is not taken.
  • Independent runs: on Windows, AMD RX 9070 XT (RDNA4), this head merged onto 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 D3D12.X: a sparse pool retired a moment ago is taken back (#913) xcl-dev/xcl#923, and the frame-dump test runs on WARP without skipping (@eizispark, Tests: skip the WARP frame-dump test where WARP is unavailable xcl-dev/xcl#957 (comment)). On a second M5 Pro (x86_64-pc-windows-gnullvm, release), the test fails on main 077ce40 and skips with no WARP at this head (@mikebuckets171, Tests: skip the WARP frame-dump test where WARP is unavailable xcl-dev/xcl#957 (comment)).

Regression run

The diff is test-only (inside #[cfg(test)] mod frame_dump_tests in present.rs). The pair below is @mikebuckets171's, pasted unchanged from xcl-dev#957 (comment): M5 Pro, CrossOver 26 + D3DMetal, x86_64-pc-windows-gnullvm release, 60 s on a retail title, a fresh data root per run. On this host main presents nothing, so the pair shows only that the change alters nothing about a run.

main:

xcl-smoke v1
commit: 077ce40c3e371cf3df8c57985b1cc6b1db39e75a
gpu: AMD Compatibility Mode
title: retail (Xbox Series X|S package, private drive)
seconds: 60
exit: 0x0
frames shown: 0 (PresentX 0)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 0 MB

this PR:

xcl-smoke v1
commit: 3c43506fbdf9872a1efb7ead385c0604c354e52e
gpu: AMD Compatibility Mode
title: retail (Xbox Series X|S package, private drive)
seconds: 60
exit: 0x0
frames shown: 0 (PresentX 0)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 0 MB

Not tested

  • The whole suite on a Windows GPU by me (I have no Windows machine); see the independent RX 9070 XT run above.
  • The release build.

AI use

  • Claude Code with Claude Opus 4.6 wrote the first version of the change and tested it on macOS. Claude Code with Claude Opus 5.5 rebased it onto 077ce40, switched it to runner::skip_test, reran the test on the Mac at 3c43506 and wrote this description.

Mirror of xcl-dev#957 (auto-synced, do not edit).

D3DMetal (macOS, CrossOver) has no WARP adapter: EnumWarpAdapter
returns 0x887A0004 (DXGI_ERROR_UNSUPPORTED), and the unwrap panics.
The test uses WARP to exercise write_frame's decoder without a
physical GPU, so it now reports "no WARP" through
runner::skip_test, like the other d3d12x tests that need a device,
and returns. Windows has WARP, so nothing changes there. (#258)

Assisted-by: Claude Code (Claude Opus 4.6 wrote the change; Claude Opus 5.5 rebased it onto 077ce40 and switched it to skip_test)
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#957 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/957 branch November 25, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants