Tests: cover compute-generated indirect draws in the test title #1402
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!1402
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@guinpereira on GitHub · 2026-11-24 15:38 UTC · original
guinpereira:claude/ei-test-validate→main· +219 −4 · 4 files · 1 commits · openThe 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
@DavidM1911 on GitHub · 2026-11-24 17:01 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
@DarkPanda69 on GitHub · 2026-11-24 15:45 UTC · original · edited 2026-11-24 21:36 UTC
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.
@DavidM1911 on GitHub · 2026-11-26 05:13 UTC · original
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.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.