Repository navigation
Tests: cover compute-generated indirect draws in the test title - #1402
guinpereira wants to merge 1 commit into
Conversation
|
AMD run with 64-lane waves, which this PR lists as not tested, plus an NVIDIA one. Updated for head Tested: pass, head
On both, Not tested: a GPU that takes the skip path; Intel; a title. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
22bf371 to
d61b500
Compare
The test title now checks the whole compute → barrier → indirect draw → readback path through its own command-list entry points, with a zero-count control. The coverage reviewed at
930e8b4does not exercise this sequence:bind.rs's ExecuteIndirect tests use a fake ExecuteIndirect without a GPU, #941 / #977 do not use ExecuteIndirect, and #869's GPU test checks its own repack shader on a PC device (no compute-written arguments, no draw, no zero count). Tests only; no runtime file changes.What is in it
tests/testtitle/src/gpu/indirect.rs(new):compute_generated_indirect_draw.gpu_compute_e2e::console_cs), created through the console device's compute PSO slot, writes draw arguments (3 vertices, 1 instance) and a draw count taken from a root constant into one buffer.ExecuteIndirect(DRAW signature, max 1, count buffer) on the title's command list, then the render target and the buffer are copied to a readback buffer.tests/testtitle/src/gpu.rs,tests/testtitle/src/main.rs: the module and its check,[PASS] D3D12.X: compute-generated indirect draw and zero-count control.crates/xcl/tests/e2e.rs:test_title_runs_and_game_folder_is_untouchedrequires that line, and counts the second console-native program (CS hardware stage, CS recompile mode, its FSSM and HLSL dumps) when the check ran; a GPU without the needed wave support reportsSKIPPEDthroughskip_test.Tested
stable-x86_64-pc-windows-msvc; DXC 1.8.2502.11 (Windows SDK 10.0.26100); debug build.mainc4d37be(headd61b500, patch unchanged pergit range-diff), clean tree otherwise.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture: 959 passed, 0 failed, 43 ignored. The test title's output has[PASS] D3D12.X: compute-generated indirect draw and zero-count controlandxcl_testtitle: done, failures: 0; noSKIPPEDline for it.lower::tests(4 GPU agreement tests),lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu, the wave64 cases oflower_dxil::tests::{f16,f32,f64,integer}_programs_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware; per-lane forms refused (gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426) — f16 arithmetic, f16 packed, f32 conversions; no heap windows —heap_window_out_of_memory_falls_back_to_the_switch_form.22bf371on930e8b4): 751 passed, 0 failed, 41 ignored.Regression run
crates/xcl/srcchanges.Not tested
22bf371).AI use
c4d37beand reran the full suite above.🤖 Generated with Claude Code