Tests: sparse tests take CI's Basic Render Driver for a software device #2837
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2837
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@DzXAnt22 on GitHub · 2026-11-26 17:09 UTC · original
DzXAnt22:tests-sparse-basic-render-driver→nvidia-dev· +3 −2 · 1 files · 1 commits · draftThe
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
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.