Recompiler: add mesh_poison to test compressed depth/colour after a mesh pass #3207
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3207"
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-28T20:01:59Z.
Adds a diagnostic that reproduces, offline, the class of GPU hang the two-pass mesh draw causes
in one title: a mesh dispatch that completes but leaves depth/colour compression metadata the
driver trips over on a later operation (~20–25 s later,
0x887A0005, no DRED page fault). Theexisting in-tree path (
runner::mesh_draw) can't exercise this: it binds no depth buffer and usesR32G32B32A32_FLOAT, a format that gets no delta colour compression.What is in it
mesh_poison+PoisonReport+MeshDepthStreamincrates/xcl/src/gpu/recomp/runner.rs:binds the game's target shape (
R8G8B8A8_UNORM+ aD32_FLOAT_S8X24_UINTdepth buffer),primes depth compression by writing it, then runs what a normal frame does after — a
depth-reading pass, a colour resolve/copy, a readback — each a separately fenced submission so
the first phase to hang or remove the device is named.
gpu_mesh_poisonincrates/xcl/src/gpu/recomp/tests.rs: drives it with a game-shaped pass(128 threads, 128v/128p) at 1024² for 9 frames and asserts every phase completed.
Tested
cargo test -p xcl --lib gpu_mesh_poison --no-run: builds clean.Regression run
runner.rsiscrates/xcl/src(test-support code), so this needs the twoxcl-smokeblocks(main vs this head) — pending the GPU run. Draft until then; a maintainer may instead apply the
test-onlylabel after reviewing the diff.Not tested
AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:31:33Z.
This PR has merge conflicts (
needs-rebase) and has had no activity for 2 days, so it is markedstaleand will be closed in 3 days unless it is rebased onto its base branch.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:39:21Z.
Review (head
8ab8acb6, diff read, not a merge-check; draft, conflicts with main,PR descriptionred):runneris a plainpub mod runner(gpu/recomp/mod.rs~68), somesh_poison,PoisonReportandMeshDepthStream(runner.rs~1446-1731) are compiled into the runtime. Moving them under#[cfg(test)]would fix that.DEPTH_WRITEthroughout, and nothing samples or copies it (~1675), so depth decompression never runs. The "resolve" is a plainCopyResource(~1705).tests.rs~3846) only checks that no phase timed out (10 s) or removed the device, and never checks pixels. Nine frames take milliseconds, while the description puts the real hang 20-25 s in.?onbind_resources(~1685) returns beforegpu.value = value(~1729), so the next test's fence wait can return early.46b385a9(gpu_mesh_mode_exports_stay_inside_the_record) sits at the same spot. That commit bounds mesh exports that went past the record, which may be the hang this hunts (unverified).As it stands it's a diagnostic experiment, and it fits better on a branch or in an issue than in the suite. It does skip correctly through
gpu_ready/mesh_ready. Related: #3205 (yours), #3350, #3504.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:48Z.
Triage (#1607) – head
8ab8acb#3205 (same author) has the same synthetic record-writing compute shader, but it sweeps mesh shapes; this PR adds a depth/multi-RT compression scenario (
runner::mesh_poison). Not a duplicate. The red check is onlyPR description. Not yet run on a GPU (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.
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.