Tests: list_x GPU fixtures use the XCL_ADAPTER adapter #3016
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3016"
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?
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-27T12:22:21Z.
The list_x GPU tests made their devices on the default adapter (
D3D12CreateDevice(None),agility::create_device(None)): on a machine with two GPUs they ran on whichever the system picked, whateverXCL_ADAPTERsaid. They now sharefixture_device(), which takes the adapterXCL_ADAPTERselects (gpu::adapter), falls back to WARP when it is unset and no hardware adapter is there (an adapter it names that is not there is a skip), prints the adapter it used once per run, and skips the test when it cannot make a device.What is in it (one commit,
hle/d3d12x/list_x.rs, tests only)fixture_device()and every list_x test that made a device on the default adapter, including the three main added after the first version of this PR:a_title_fence_wait_an_earlier_signal_covers_is_no_cycle,put_off_riganda_split_after_kickoff_does_not_take_the_segment_just_submitted...._on_the_software_adapterand the WARP-only fixture) keep their WARP device.#[cfg(test)]module.scripts/pr_check.pycountslist_x.rsas a runtime file all the same, so this PR needs the maintainer'stest-onlylabel (CONTRIBUTING, point 3) in place of a smoke pair.Tested
4a9158b8914b0f3e7cc0845c276b7f4c20b41a7d: workspace suite build exit 0; 2,877 passed, 6 failed, 51 ignored. The six VM-known failures weregpu_direct_image_get_resinfo_d16,placed_title_textures_share_vram_and_preserve_pixels, the threestream_recheck_*follow-on tests, andtest_title_runs_and_game_folder_is_untouched(e2e: Invalid bitcode signature). The 5090 smoke pair is below. Earlier detailed test results are from795e4017.53e85fb1(this head795e4017; the previous headd32774f3was on mainfa204595). The PR checks' earlier failures were 4pipeline_library/warm_librarytests of that older base, which pass on53e85fb1.795e4017:cargo test -p xcl --lib --no-run, debug and release: both build.cargo test -p xcl --lib -- list_x --nocapture --test-threads=1: 113 passed, 0 failed, 0 ignored, 2570 filtered out. The fixture printedlist_x fixture adapter: NVIDIA GeForce RTX 3090; WARP=false.cargo test --workspace --no-fail-fast -- --test-threads=4: the lib binary was killed (STATUS_ACCESS_VIOLATION) whilegpu::agility::tests::create_device_sets_dred_first,gpu::bvh::tests::scene_trace_matches_brute_forceandgpu::dxil::compact_tests::a_large_program_that_repeats_itself_takes_the_compact_formran: main's own (mainfa204595was killed the same way on this machine, with the same three running). The other binaries: 138 passed, 1 failed, 20 ignored (the e2e failure below). The lib binary rerun on 1 thread (--skip uma_driver::tests, all 8 of them): 2641 passed, 5 failed, 29 ignored, the same lib tests as main (2641 + 5 + 29 + 8 = 2683). SKIPPED in that run's output: 14 (8 no wave64, 3 no debug layer, 2 refused per-lane forms, 1 no heap windows); the killed run's are not in it.53e85fb1on the same machine: 2784 passed, 6 failed, 49 ignored, 31 SKIPPED. The 6 are main's own:title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels, the 3stream_recheck_*tests,standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline(main's test does not count the stand-in pipeline's deferred release, Related: #3484), e2etest_title_runs_and_game_folder_is_untouched. The lib failures here are those 5; e2e fails as on main.0624a46e): DarkPanda69's AMD + NVIDIA hybrid machine, 40/40 on both adapters with the adapter line matchingXCL_ADAPTER.Regression run
main-full-d8bd), the same frozen accepted-terms profile (r18-terms:gamesaveandpls/settings), and held Enter. The blocks below are copied verbatim from the rig script's report.Main
9dfbe3ea:This head
4a9158b8:Not tested
alloc_pool.rshas three) are not part of this PR.AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_013oPUFCA9W9F8Qb5MPK33bR
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-27T20:11:42Z.
AMD run as asked, on a two-GPU PC (RX 9070 XT + RTX 3060), so the adapter check is a real one.
Tested: pass, head
0624a46applied onmain6089122, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X (XCL_NETWORKnot set).cargo test -p xcl --lib -- hle::d3d12x::list_x::tests:: --test-threads=4 --nocapture:XCL_ADAPTER=radeon:list_x fixture adapter: AMD Radeon RX 9070 XT; WARP=false, 40 passed, 0 failed, 0 ignored, 0 SKIPPED (driver 32.0.32029.2010).XCL_ADAPTER=3060:list_x fixture adapter: NVIDIA GeForce RTX 3060; WARP=false, 40 passed, 0 failed, 0 ignored, 0 SKIPPED (driver 32.0.16.1088).On this hybrid machine the reported adapter matched the request both times, the lowercase
radeonincluded.mainwithout the PR: 40 passed on both, with no adapter line.Not tested: Intel, a WARP-only machine, release.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:53:27Z.
Triage (#1607) – head
4a9158bNo open or merged PR makes the same change. #2337 and #2879 apply the same idea to other files (
vram.rs/title_textures.rs,gpu/texture.rs). Notes on the diff inlist_x.rs:fixture_devicefalls back to WARP when the adapter chosen withXCL_ADAPTERfails to create a device, and only logs it, so a run that asked for a specific GPU can quietly test on WARP. Tests that used to skip without hardware (an_internal_wait_is_listed_until_its_fence_reaches_the_value,a_split_after_kickoff_does_not_take_the_segment_just_submitted, ...) now run on WARP. Removing theuselines left a blank line at the start of several test bodies.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T16:27:50Z.
merge-check
base:
6bfb5c5153head:
4a9158b891merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2904 passed, 0 failed, 51 ignored (base: 2904 passed, 0 failed, 51 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: none
review: read the whole diff (1 file, +53 -226, all inside
list_x.rs's#[cfg(test)]module, so test-only). No correctness problem found.hle::d3d12x::list_x::tests::(105 tests,--test-threads=4,--nocapture), one GPU here:XCL_ADAPTERNVIDIA GeForce RTX 3060; WARP=falsewarpMicrosoft Basic Render Driver; WARP=true3060nosuchgpu"nosuchgpu" matches no hardware adapter (have: 0 = NVIDIA GeForce RTX 3060)Minor:
split_close_rigstill makes its device on the default adapter (agility::create_device(None, ...),list_x.rs:8496in the merge), and it was already on the PR's base9dfbe3e. Soa_split_whose_close_fails_leaves_that_list_out_and_goes_onanda_split_whose_close_fails_with_no_list_in_its_place_fails_the_recording_closeddo not followXCL_ADAPTER; underXCL_ADAPTER=warpthey ran on the RTX 3060. The description says "every list_x test".The fixture now makes devices through
agility::create_device(DRED set first, Agility factory when loaded) where most of these tests calledD3D12CreateDevicedirectly. That is the runtime's own path; no test changed result here.Foniass's note stands: a selected adapter whose device creation fails falls back to WARP with only an
eprintln!. It did not come up here (every device creation succeeded).put_off_dispatches_wait_at_the_submit_and_run_on_the_software_adapter, which is meant to run on WARP, keeps its WARP device.list_x.rscounts as a runtime file forpr_check.py, so it still needs the maintainer'stest-onlylabel.performance: none: test code only.
verdict: safe to merge
hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-12-02T17:13:12Z.
Linux / AMD RDNA4 (RADV, Wine + vkd3d-proton): full test suite on
4a9158bMerged onto
main5eaadb54(clean merge) and compared withmainrun twice on the same machine.Setup
v3.1-83-gcae8353edand DXVKdxgi.dllfrom GE-Proton11-16, DXC 1.9.2609.5x86_64-pc-windows-msvcwithcargo-xwin; test binaries run under WineTested:
cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 --skip <31 tests>main5eaadb54main: none.About the failures on
mainand the 31 skipped tests (same for every PR in this batch)main's 177 failures under Wine come from #175: once a test has set up the real device, vkd3d-proton refuses the command allocators XCL adopts (d3d12_command_list_Reset: Invalid command allocator), and later tests getE_INVALIDARG(0x80070057). Running vkd3d-proton master with its vtable check taken out,hle::d3d12x::sparse::testsgoes from 106 passed / 38 failed to 144 / 0.std::terminate()(Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private), which kills the whole test binary. They are the split-wave64, dispatch-chain and bridged-mask GPU tests,gpu_compute_mode_dispatch_abi,gpu_compute_thread_limits_leave_the_lanes_past_them_out, the twogpu_mesh_mode_*tests, andconsole_wave64_compute_through_the_pso_hook_dispatch_and_read_back, plusserialize_root_signature_strips_console_flags_and_preserves_pc_flags, whose null descriptor vkd3d-proton dereferences. The dxil-spirv ones crash the same way with vkd3d-proton master (f8c1cae8, dxil-spirv93ab44c5).mainwas run twice: same counts, same failure set.SKIPPEDlines (same asmain): no heap windows (2), no D3D12 debug layer (2-3), driver cache control not implemented in vkd3d-proton (1).Not tested: Windows, NVIDIA, a retail title /
scripts/smoke.ps1, a review of the diff. This is a test report, not amerge-check.AI use: omp (Claude Opus 5.5) merged, built and ran the suites on this machine, compared the results with
main, and drafted this report. The user asked for it to be posted.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.