Skip to content

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

Draft
DzXAnt22 wants to merge 1 commit into
xcl-dev:nvidia-devfrom
DzXAnt22:tests-sparse-basic-render-driver
Draft

DzXAnt22 wants to merge 1 commit into
xcl-dev:nvidia-devfrom
DzXAnt22:tests-sparse-basic-render-driver

Conversation

@DzXAnt22

Copy link
Copy Markdown

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):

Regression run

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

Not tested

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

On nvidia-dev, a_gpu_view_tile_is_filled_from_its_cpu_view_and_follows_its_writes
sizes its GPU view by software(): 53 tiles on a software device, 3 GiB on a GPU.
software() only looked at DXGI_ADAPTER_FLAG_SOFTWARE. On the CI runner the
default adapter is the Microsoft Basic Render Driver (0 MiB VRAM), and the CI log
of af2cecc shows the test reserving the 3 GiB view there; the device is then
removed (0x887a0020) and the device-removal handler ends the test process, so the
CI job fails on nvidia-dev and on every PR against it.

software() now 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 check
and skips there as its comment intends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant