Repository navigation
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (DXIL GPU fuzz tests reproducibly fail with E_OUTOFMEMORY on RTX 5060 #1905, fixed by Recompiler: LDS ds_sub_u32 hides its negation from the driver (RTX 50 refuses it) #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 (Tests: some_ranges in texture_upload wraps its generator instead of overflowing #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 Tests: some_ranges in texture_upload wraps its generator instead of overflowing #2771 (or an equivalent) is in.AI use
🤖 Generated with Claude Code