Tests: sparse tests take CI's Basic Render Driver for a software device #2837
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2837"
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 DzXAnt22 on 2026-11-26T17:09:06Z.
The
CIjob is red onnvidia-devitself (af2cecc4, run) and on the PRs against it, whatever they change. On the runner, the lib test process ends with0x887a0020right after a 3 GiB GPU view is reserved in the sparse tests:a_gpu_view_tile_is_filled_from_its_cpu_view_and_follows_its_writes(only onnvidia-dev) takes 53 tiles on a software device and 3 GiB on a GPU, decided by the test helpersoftware(), which only looked atDXGI_ADAPTER_FLAG_SOFTWARE. The runner's default adapter is the Microsoft Basic Render Driver (0 MiB VRAM), and the log shows the 3 GiB path was taken there, so the flag did not identify it. The removal then ends the whole test process, which is why every PR on this branch fails the same way.maindoes not have this test and its CI is green.What is in it
crates/xcl/src/hle/d3d12x/sparse.rs(test module only):software()also counts the Microsoft software adapter by its IDs (vendor0x1414, device0x8c), which WARP and the Basic Render Driver share.small_runs_go_up_in_dispatches_and_leave_what_lies_betweenuses the same helper and now skips there as its comment says it should.Tested
cargo test -p xcl --lib hle::d3d12x::sparse::tests -- --test-threads=4: 60 passed, 0 failed, 1 ignored.XCL_TEST_WARP=1: 60 passed, 0 failed, 1 ignored in 4 of 5 runs; one run faileda_mapping_put_off_is_sent_without_a_submit("nothing sent the mappings"), a timing-based test that does not usesoftware(); it passed on the unchanged tree and in the 4 reruns.cargo test --workspace --no-fail-fast -- --test-threads=4: 1741 passed, 10 failed, 48 ignored, 27SKIPPED(mostly "no wave64"). The 10 failures are the same without this change (this change is in#[cfg(test)]only, so the integration tests are unchanged):gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_{0..3}:E_OUTOFMEMORYon RTX 50 (#1905, fixed by #1919 onmain)texture_upload::tests::{gpu_parts_of_a_texture_go_up_and_the_rest_stays, pieces_hold_the_texels_of_their_levels}: multiply overflow (#2771)d3d12_mesh_stream::console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,gpu_compute_e2e::async_compute_pso_registers_real_pso_and_not_standin,gpu_two_pass_cache_e2e::two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsRegression run
Test-only change (
#[cfg(test)] mod testsinsparse.rs); no runtime code changes.Not tested
CIrun: I could not reproduce the Basic Render Driver's flags locally (WARP here does carryDXGI_ADAPTER_FLAG_SOFTWARE). The cause is read from the CI log above.CIonnvidia-devstays red on the twotexture_uploadoverflow tests until #2771 (or an equivalent) is in.AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-27T17:28:33Z.
@DzXAnt22 this change, together with #2771, #2788 and #2773, makes
nvidia-dev'sBuild and test (Windows, no GPU)pass:d1be8103with the four merged, all 40 test binaries ok, https://github.com/Kalmarv/xcl/actions/runs/46032822388. The job log onnvidia-devPRs shows exactly the case this fixes (adapter "Microsoft Basic Render Driver", the 3 GiB test runs, the next sparse test fails atMapwith0x887a0005). #3041's queue holds everynvidia-devPR until that job is green and does not list drafts, so if you consider it done, marking it ready for review would let it be merged.AI use: Claude Code (Claude Opus 5.5) read the job logs and wrote this comment.
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-27T17:29:35Z.
merge-check
base:
d1be810364(nvidia-dev)head:
9d967cf8d6merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1822 passed, 10 failed, 48 ignored (the harness lines summed; two of the failing tests re-run themselves in a child process and count twice). Failing, 8 distinct, exactly the base's: lib
gpu::recomp::link_tests::gpu_linked_memory_accessors,gpu::recomp::link_tests::linked_programs_keep_their_declarations,hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays,hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels(#2771's);d3d12_mesh_stream::console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly(#2788's);gpu_compute_e2e:async_compute_pso_registers_real_pso_and_not_standin,split_compute_prefers_the_offline_whole_pipeline;gpu_two_pass_cache_e2e:two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs. Expected: on a hardware adaptersoftware()answers as before, so nothing changes here.review: none. Test-only:
software()in sparse.rs's tests also counts adapter 0x1414:0x8c (Microsoft Basic Render Driver / WARP) as software, so the 3 GiB reserved-buffer test skips there instead of removing the device the later tests share. Read the whole diff. The changed branch cannot run on this machine; what shows it working is CI's own job: onnvidia-devPRs the log names "Microsoft Basic Render Driver (0 MiB VRAM)", the 3 GiB test runs, and the next sparse test fails atMapwith0x887a0005; with this PR and the three others the job passes (fork run: https://github.com/Kalmarv/xcl/actions/runs/46032822388).performance: none, test-only.
verdict: safe to merge once it is out of draft.
hardware / tool and model: NVIDIA GeForce RTX 5070 Ti, driver 610.74, Ryzen 9 9950X, Windows 11 Pro 26200, rustc 1.99.0; Claude Code (Claude Opus 5.5) ran the build and tests and wrote this check.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:28:14Z.
merge-check claim
head:
9d967cf8d6Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:48:59Z.
merge-check
base:
d1be8103(nvidia-dev)head:
9d967cf8d6merge: clean (alone, and together with the other three)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1824 passed, 8 failed, 48 ignored, the same failures as the base (this fix is for CI's software adapter, which this machine does not use). base (nvidia-dev
d1be8103) alone on this GPU: 1824 passed, 8 failed, 48 ignored; failing there: async_compute_pso_registers_real_pso_and_not_standin, split_compute_prefers_the_offline_whole_pipeline, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, and two texture_upload tests. All four test fixes together (#2837 + #2771 + #2788 + #2773): 1827 passed, 5 failed, 48 ignored; only the first three names remain, and they fail on the base too.review: none. One line: the software-device test also accepts the Microsoft Basic Render Driver by vendor and device id, which need not carry the software flag. Note that the function is runtime code, not test-only: a real machine that ends up on that adapter is now treated as software too, which is what it is.
performance: none (one comparison where the adapter is queried).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code (Claude Fable 5.2): merge, build, suite and the review of this small diff; nothing run on the GPU beyond the suite.