Tests: sweep two-pass mesh shapes to pin a shape-dependent hang #3205
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3205"
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 Dremaus on 2026-11-28T19:56:13Z.
Adds a GPU test that sweeps the pass-through mesh pipeline across the
MsInterfaceshapes aretail title produces, to pin down a shape-dependent GPU hang in the translated two-pass mesh
draw (the one behind
0x887A0005~20–25 s after the first mesh pass, while a minimalsingle-dispatch repro completes).
What is in it
gpu_mesh_shape_sweepincrates/xcl/src/gpu/recomp/tests.rs: for each shape (thread count,vertex/primitive counts up to 256/256, output rows crossing the 32 KB per-group limit into
the split path) it writes one synthetic full record with a compute shader and rasterises it
through the real two-pass path (
runner::mesh_draw_split). The first shape whose draw errors(a hang becomes an error via the 10 s fence wait) is reported with its parameters; all passing
means the pipeline shape alone is not the trigger.
Tested
cargo test -p xcl --lib gpu_mesh_shape_sweep --no-run: builds clean.cargo test --workspace -- --test-threads=4counts and anySKIPPED.Not tested
AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:42:17Z.
Review (head
c6a92d94, diff read, not a merge-check; draft, test-only, conflicts with main):XCL_SAMPLE_*tests) would keep it out of normal runs.46b385a9(gpu_mesh_mode_exports_stay_inside_the_record) at the same spot intests.rs. That commit bounds mesh exports that went past the record, which may be the hang this is after (unverified). A rerun of the repro on current main would say whether the sweep is still needed.Fine: it skips through
gpu_ready()/mesh_ready(), stops at the first failure and names its shape, and the shapes cover the split path past 32 KB per group and the retail 21-row shape. Related: #3207 (yours) and #3350.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:43:16Z.
Triage (#1607) – head
c6a92d9#3207 (same author) has the same synthetic record-writing compute shader, but it tests a different hypothesis: depth/colour compression after a mesh pass, not the mesh shape. Not a duplicate, though one shared helper would avoid the copied HLSL if both land. Neither test has run on a GPU yet (per the description). No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Joori on 2026-12-01T12:07:59Z.
Test report for
c6a92d94(onmain5b711248), on an NVIDIA card with the two-pass mesh hang.Tested
cargo test -p xcl --lib gpu_mesh_shape_sweep -- --nocapture: 1 passed, 0 failed, 0 ignored, finished in 1.31 s. No skip: the GPU, DXC and mesh-shader checks passed, so all nine shapes were drawn.So on this card the pass-through mesh pipeline draws every shape in the sweep. That includes 256/256, the split path, the retail 21-row shape and the compact-group split, all with well-formed records.
On Foniass's point about
46b385a9: this head does not have it (its base5b711248predates the merge), and the sweep passes anyway. The synthetic records never export past their slots, so the sweep doesn't reach the case46b385a9bounds. Also, the title still hangs here onmain1bd9cee1, which has46b385a9.For context: on this card the retail title still hangs in the two-pass mesh pass, in the café (#505, comments 7308187998 and 7308721098). There it is
0x887a0006with MMU faults at GPU VA 0x0. Since the shapes pass with well-formed records, I'm now looking at what the mesh pass reads in the title (its records and the addresses in them), not the pipeline shape.Not tested
AI use: Claude Code with Claude Opus 5.5 built the PR in a separate worktree, ran the test, read its code, and wrote this report. The run was on this machine.
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.