Tests: select the requested adapter for heap probes #2881
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2881"
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 andrewDoing on 2026-11-26T20:58:48Z.
The opt-in D3D12 heap diagnostics ignored
XCL_ADAPTER, so they could print plausible limits for the default GPU while a different adapter was requested. Honor the selector, identify the actual device and report unavailable adapters through the standard skip mechanism.What is in it
crates/xcl/tests/heap_probe.rs: select the requested native D3D12 device for all four ignored probes, preserve the default-device behavior forauto, and print the adapter and LUID. When a device is unavailable, permissive mode now skips and strict mode fails.Tested
view_heap_capacityprobe on the RTX 5070 and WARP. The former reported maximum 1,000,000 views / 4,080 samplers and rejected a 1.2M view heap; WARP reported 2,097,152 / 2,097,152 and created it.autoselected the RTX 5070 as before.XCL_REQUIRE_GPU=meshall four failed as expected. Before the change the strictview_heap_capacitycontrol instead printed results from the default GPU.cargo test --workspace --no-fail-fast -- --test-threads=4, with a writable workspace DXIL cache: 1,441 passed, 5 failed, 47 ignored. A fresh clean-main run at8b957bechad the same totals. Four failures were known RTX 50 fuzz seeds (#1905), and one was the synthetic-title DRED test. Both logged 26 skip events: 21 no wave64, three unsupported per-lane forms, one unavailable driver-cache option, and one unavailable heap-windows feature.Regression run
Not tested
AI use
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T21:40:53Z.
Linux (Wine) dual-lane run at head
2c50cc71- safe, but it does not change our NVIDIA Wine red.Rig (Ryzen 9 9900X / RX 7900 XT / wine-11.0 Proton): 606/2, red set identical to today's fresh main baseline. Nothing to see on RADV.
Boxb (i5-10600K / GTX 1070 550.163.01 / wine-10.0 + vkd3d-proton, xvfb): 605/3, and the veteran red
list_x::tests::write_buffer_immediate_on_open_existing_heap_visible_to_cpu- the one we flagged in our #2771 row as NVIDIA-only - still fails identically at your head. So the adapter-selection fix does not reach whatever is wrong in the Wine + NVIDIA stack; the test gets the right adapter here but still reads stale CPU-side contents for the open existing heap.Suite:
cargo test --release --locked -p xcl --lib --target x86_64-pc-windows-gnu -- --test-threads=2 --skip gpu::.AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:07:17Z.
Triage (#1607) – head
2c50cc7No open or merged PR changes adapter selection in tests/heap_probe.rs. #537, #2337, #2879 and #3016 do the same for other test files.
No problems found in the diff. All four probes are #[ignore] manual probes. view_heap_capacity now skips instead of panicking when there is no device.
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:34:41Z.
merge-check
base:
6bfb5c5153head:
2c50cc71bcmerge: 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; the four probes are
#[ignore]); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: nonereview: read the whole diff (1 file,
crates/xcl/tests/heap_probe.rs, +40 -18, test-only). No correctness problem found.The four probes,
cargo test -p xcl --test heap_probe -- --ignored --test-threads=1 --nocapture, one GPU here:XCL_ADAPTERunsetNVIDIA GeForce RTX 3060view_heap_capacity: max view heap 1000000, samplers 4080XCL_ADAPTER=3060NVIDIA GeForce RTX 3060XCL_ADAPTER=warpMicrosoft Basic Render Driverview_heap_capacity: 2097152 / 2097152XCL_ADAPTER=nosuchgpuSKIPPED ...: no D3D12 device for "nosuchgpu": ... matches no hardware adapter (have: 0 = NVIDIA GeForce RTX 3060)XCL_ADAPTER=nosuchgpuandXCL_REQUIRE_GPU=meshNot this PR's code, but now reachable through it: on WARP,
window_sized_reserved_buffer_on_video_memory_tilesfails 3 of 3 runs alone.E_OUTOFMEMORY, which the probe prints and moves on from.0x887A0005(device suspended) atq.Signal(&fence, 1).unwrap()ingpu_copy.view_heap_capacity.autokeeps the oldD3D12CreateDevice(None, ...)path, so the default does not change.view_heap_capacitynow skips without a device instead of panicking onunwrap().performance: none: manual probes in an integration test.
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 vasanex on 2026-12-02T01:09:28Z.
merge-check claim
head:
2c50cc71bcImported from ivall/xcl. Originally posted by vasanex on 2026-12-02T01:17:29Z.
merge-check
base:
1c8b551475head:
2c50cc71bcmerge: clean (merged tree 5267e871,
git diff --checkclean)build: cargo build --workspace -> ok (the changed test file compiles against main's
xcl::gpu::adapter)tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2909 passed, 0 failed, 51 ignored; SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 cannot disable the driver cache), the same set as on the base; failing: none. Base alone, same machine: 2909 passed, 0 failed, 51 ignored. The four probes this PR changes are
#[ignore]and were not run here.review: whole diff read (one file, crates/xcl/tests/heap_probe.rs, +40/-18). No finding. The four ignored probes take their device from one helper:
autokeeps the default-device call as before, anotherXCL_ADAPTERgoes throughadapter::candidates(orEnumWarpAdapter), the adapter's name and LUID are printed, and a missing device is askip_testinstead of a silent return or, inview_heap_capacity, an unwrap. Nothing outside the test file changes.performance: none: ignored test code only.
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 3080 10 GB (driver 621.40), AMD Ryzen 9 7950X, Windows 11 Pro 26200, rustc 1.100.0, debug / Claude Code with Claude Fable 5.2. Run and posted without a human check of each point.