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. (#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)
Owner
Author
|
Upstream PR xcl-dev#957 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) 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 onmain077ce40and skips withno WARPat 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_testsinpresent.rs). The pair below is @mikebuckets171's, pasted unchanged from xcl-dev#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.Mirror of xcl-dev#957 (auto-synced, do not edit).