Repository navigation
Conversation
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. (xcl-dev#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)
|
@ivall this is a test-only diff inside |
|
Hardware check of Tested
Regression run PR ( Not tested
AI use
|
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. 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 AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
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, The named test, both sides (
So the skip fires here, on the
Read them for what they are: on this host a 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. |
|
Test report from a second Mac, head Tested
Not tested
AI use
|
|
Independent verification, merged onto current Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
Empirical test report (3c43506)PR #957 head Hardware / environment
Commands and results
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 |
present::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 D3D12.X: a sparse pool retired a moment ago is taken back (#913) #923, and the frame-dump test runs on WARP without skipping (@eizispark, Tests: skip the WARP frame-dump test where WARP is unavailable #957 (comment)). On a second M5 Pro (x86_64-pc-windows-gnullvm, release), the test fails onmain077ce40and skips withno WARPat this head (@mikebuckets171, Tests: skip the WARP frame-dump test where WARP is unavailable #957 (comment)).Regression run
The diff is test-only (inside
#[cfg(test)] mod frame_dump_testsinpresent.rs). The pair below is @mikebuckets171's, pasted unchanged from #957 (comment): 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.