Tests: cover compute-generated indirect draws in the test title #1392
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1402"
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?
Imported from ivall/xcl. Originally posted by guinpereira on 2026-11-24T15:38:51Z.
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 (#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
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-24T15:45:54Z.
AMD run with 64-lane waves, which this PR lists as not tested, plus an NVIDIA one. Updated for head
d61b500(first run was on22bf371, same result).Tested: pass, head
d61b500applied onmainc4d37be, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo build --workspace, thencargo test -p xcl --test e2e -- --test-threads=1 --nocapturewithXCL_ADAPTERset to each GPU:On both,
test_title_runs_and_game_folder_is_untouchedpassed its[PASS] ... compute-generated indirect draw and zero-count controlassert with noSKIPPEDline for it, so the CS shader counts were checked on both adapters. The one SKIPPED line on each istest_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll, the same onmainwithout this PR.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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T17:01:46Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:13:14Z.
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:14Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:38:22Z.
Triage (#1607) – head
d61b500No open or merged PR adds a compute-generated indirect draw check to the test title.
Minor points: tests/testtitle/src/gpu/indirect.rs skips when the device supports neither 32 nor 64 lanes but prints 'no wave64'; in e2e.rs that skip makes the whole e2e test print SKIPPED although every other check in it ran. The PR conflicts with main's e2e.rs.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.