Tests: sparse tests take CI's Basic Render Driver for a software device #2837

Merged
DzXAnt22 merged 1 commit from upstream-pr/2837 into nvidia-dev 2026-11-28 00:36:19 +00:00
DzXAnt22 commented 2026-11-26 17:09:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DzXAnt22 on 2026-11-26T17:09:06Z.


The CI job is red on nvidia-dev itself (af2cecc4, run) and on the PRs against it, whatever they change. On the runner, the lib test process ends with 0x887a0020 right after a 3 GiB GPU view is reserved in the sparse tests:

xcl: kernelx: reservation 0x20dfffc0000 (0xc0000000 bytes, no CPU access) is the GPU view of 0x20efffc0000
xcl: D3D12 device removed: 0x887a0020 An internal issue prevented the driver from carrying out the specified operation.

a_gpu_view_tile_is_filled_from_its_cpu_view_and_follows_its_writes (only on nvidia-dev) takes 53 tiles on a software device and 3 GiB on a GPU, decided by the test helper software(), which only looked at DXGI_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. main does 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 (vendor 0x1414, device 0x8c), which WARP and the Basic Render Driver share. small_runs_go_up_in_dispatches_and_leave_what_lies_between uses the same helper and now skips there as its comment says it should.

Tested

  • RTX 5070 Ti 16 GB, driver 616.92; Ryzen 9 5950X, 64 GB; Windows 11 build 26300; Rust 1.100.0 MSVC; DXC 1.8.2502.11; debug.
  • cargo test -p xcl --lib hle::d3d12x::sparse::tests -- --test-threads=4: 60 passed, 0 failed, 1 ignored.
  • Same with XCL_TEST_WARP=1: 60 passed, 0 failed, 1 ignored in 4 of 5 runs; one run failed a_mapping_put_off_is_sent_without_a_submit ("nothing sent the mappings"), a timing-based test that does not use software(); 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, 27 SKIPPED (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_OUTOFMEMORY on RTX 50 (#1905, fixed by #1919 on main)
    • 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_blobs

Regression run

Test-only change (#[cfg(test)] mod tests in sparse.rs); no runtime code changes.

Not tested

  • The CI runner itself, until this PR's CI run: I could not reproduce the Basic Render Driver's flags locally (WARP here does carry DXGI_ADAPTER_FLAG_SOFTWARE). The cause is read from the CI log above.
  • Even with this, CI on nvidia-dev stays red on the two texture_upload overflow tests until #2771 (or an equivalent) is in.
  • AMD.

AI use

  • Claude Code (Claude Opus 5.5): found the cause in the CI logs, wrote the change, ran the tests and wrote this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5514257876 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2837). Originally posted by [DzXAnt22](https://github.com/DzXAnt22) on 2026-11-26T17:09:06Z. --- The `CI` job is red on `nvidia-dev` itself (`af2cecc4`, [run](https://github.com/xcl-dev/xcl/actions/runs/45766404440)) and on the PRs against it, whatever they change. On the runner, the lib test process ends with `0x887a0020` right after a 3 GiB GPU view is reserved in the sparse tests: ``` xcl: kernelx: reservation 0x20dfffc0000 (0xc0000000 bytes, no CPU access) is the GPU view of 0x20efffc0000 xcl: D3D12 device removed: 0x887a0020 An internal issue prevented the driver from carrying out the specified operation. ``` `a_gpu_view_tile_is_filled_from_its_cpu_view_and_follows_its_writes` (only on `nvidia-dev`) takes 53 tiles on a software device and 3 GiB on a GPU, decided by the test helper `software()`, which only looked at `DXGI_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. `main` does 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 (vendor `0x1414`, device `0x8c`), which WARP and the Basic Render Driver share. `small_runs_go_up_in_dispatches_and_leave_what_lies_between` uses the same helper and now skips there as its comment says it should. **Tested** - RTX 5070 Ti 16 GB, driver 616.92; Ryzen 9 5950X, 64 GB; Windows 11 build 26300; Rust 1.100.0 MSVC; DXC 1.8.2502.11; debug. - `cargo test -p xcl --lib hle::d3d12x::sparse::tests -- --test-threads=4`: 60 passed, 0 failed, 1 ignored. - Same with `XCL_TEST_WARP=1`: 60 passed, 0 failed, 1 ignored in 4 of 5 runs; one run failed `a_mapping_put_off_is_sent_without_a_submit` ("nothing sent the mappings"), a timing-based test that does not use `software()`; 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, 27 `SKIPPED` (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_OUTOFMEMORY` on RTX 50 (#1905, fixed by #1919 on `main`) - `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_blobs` **Regression run** Test-only change (`#[cfg(test)] mod tests` in `sparse.rs`); no runtime code changes. **Not tested** - The CI runner itself, until this PR's `CI` run: I could not reproduce the Basic Render Driver's flags locally (WARP here does carry `DXGI_ADAPTER_FLAG_SOFTWARE`). The cause is read from the CI log above. - Even with this, `CI` on `nvidia-dev` stays red on the two `texture_upload` overflow tests until #2771 (or an equivalent) is in. - AMD. **AI use** - Claude Code (Claude Opus 5.5): found the cause in the CI logs, wrote the change, ran the tests and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Kalmarv commented 2026-11-27 17:28:33 +00:00 (Migrated from github.com)

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's Build and test (Windows, no GPU) pass: d1be8103 with the four merged, all 40 test binaries ok, https://github.com/Kalmarv/xcl/actions/runs/46032822388. The job log on nvidia-dev PRs shows exactly the case this fixes (adapter "Microsoft Basic Render Driver", the 3 GiB test runs, the next sparse test fails at Map with 0x887a0005). #3041's queue holds every nvidia-dev PR 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.

<!-- greyfinch-sync:ivall/xcl:comment:7224447240 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2837#issuecomment-7224447240). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-27T17:28:33Z. --- @DzXAnt22 this change, together with #2771, #2788 and #2773, makes `nvidia-dev`'s `Build and test (Windows, no GPU)` pass: d1be8103 with the four merged, all 40 test binaries ok, https://github.com/Kalmarv/xcl/actions/runs/46032822388. The job log on `nvidia-dev` PRs shows exactly the case this fixes (adapter "Microsoft Basic Render Driver", the 3 GiB test runs, the next sparse test fails at `Map` with `0x887a0005`). #3041's queue holds every `nvidia-dev` PR 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.
Kalmarv commented 2026-11-27 17:29:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-27T17:29:35Z.


merge-check
base: d1be810364 (nvidia-dev)
head: 9d967cf8d6
merge: 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 adapter software() 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: on nvidia-dev PRs the log names "Microsoft Basic Render Driver (0 MiB VRAM)", the 3 GiB test runs, and the next sparse test fails at Map with 0x887a0005; 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.

<!-- greyfinch-sync:ivall/xcl:comment:7224466798 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2837#issuecomment-7224466798). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-27T17:29:35Z. --- merge-check base: d1be8103644791b7a65f068954324e93d4b1b565 (`nvidia-dev`) head: 9d967cf8d65ae9dfdd36fd48c51149284c5a9a98 merge: 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 adapter `software()` 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: on `nvidia-dev` PRs the log names "Microsoft Basic Render Driver (0 MiB VRAM)", the 3 GiB test runs, and the next sparse test fails at `Map` with `0x887a0005`; 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.
throny commented 2026-11-27 21:28:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:28:14Z.


merge-check claim
head: 9d967cf8d6

<!-- greyfinch-sync:ivall/xcl:comment:7228472416 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2837#issuecomment-7228472416). Originally posted by [throny](https://github.com/throny) on 2026-11-27T21:28:14Z. --- merge-check claim head: 9d967cf8d65ae9dfdd36fd48c51149284c5a9a98
throny commented 2026-11-27 21:48:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:48:59Z.


merge-check
base: d1be8103 (nvidia-dev)
head: 9d967cf8d6
merge: 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.

<!-- greyfinch-sync:ivall/xcl:comment:7228779484 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2837#issuecomment-7228779484). Originally posted by [throny](https://github.com/throny) on 2026-11-27T21:48:59Z. --- merge-check base: d1be8103 (nvidia-dev) head: 9d967cf8d65ae9dfdd36fd48c51149284c5a9a98 merge: 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2837
No description provided.