Repository navigation
D3D12.X: skip ExecuteIndirect with two-pass mesh/GS pipelines - #1124
spidermodders wants to merge 1 commit into
Conversation
Two-pass mesh and ES+GS pipelines are built with XCL's mesh root signature and registered in TWO_PASS rather than TRANSLATED_GRAPHICS. ExecuteIndirect checked translated graphics/compute and pending async PSOs, but not two_pass_of(pso), so a two-pass PSO fell through to the PC path with the title's graphics root signature and zeroed root descriptors, triggering an immediate GPU page fault at VA 0x0 (0x887a0006). Skip ExecuteIndirect when two_pass_of(pso).is_some(), matching the existing guard for pending async PSOs, and add a unit test covering this path.
|
Test report on AMD wave64 hardware (RX 6900 XT, RDNA2): no new failures, and Tested
Not tested
AI use: Claude Code (Claude Opus 5.5) fetched the branch, ran the suite and wrote this report; the runs are real, on the hardware above. |
|
Ran the new ExecuteIndirect test and the whole Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
Not tested: a mesh or GS title going through the two-pass path (no unpacked title here), RDNA2/RDNA4 and Intel GPUs, Wine, release profile. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified. |
|
Windows / NVIDIA retail test of Tested
Not tested: a build with this PR and without #684; more runs (two per build); AMD / Intel; Windows 10. An Idle-priority shader precompile ran alongside all four runs. Run and written with Claude Code (Claude Opus 5.5). |
xcl-dev#1124 skips ExecuteIndirect with a two-pass mesh / GS pipeline too, but the breadcrumb still said "pipeline still being built" for it. Assisted-by: omp (Claude Opus 5.5)
Two-pass mesh and ES+GS pipelines are built with XCL's mesh root signature and registered in
TWO_PASSrather thanTRANSLATED_GRAPHICS. Inexecute_indirect, XCL checked translated graphics/compute pipelines and pending async PSOs, but did not checkreal::two_pass_of(pso). A two-pass PSO therefore fell through to the PCExecuteIndirectpath with the title's graphics root signature and zeroed root descriptors, causing an immediate GPU page fault at VA0x0(0x887a0006).This adds a 1-line guard to skip
ExecuteIndirectwhenreal::two_pass_of(pso).is_some(), matching the existing guard for pending async PSOs. (Complementary to / superseded by full two-pass mesh shader execution in #724; this is a minimal crash fix somainstops removing the device in the meantime.)What is in it
crates/xcl/src/hle/d3d12x/bind.rs: skipexecute_indirectwhensuper::real::two_pass_of(pso).is_some()alongsidepso_async::is_pending(...), and add unit testexecute_indirect_with_a_two_pass_pipeline_is_skipped.crates/xcl/src/hle/d3d12x/real.rs: add#[cfg(test)] register_two_pass_for_testhelper matching the existingregister_translated_*_for_testhelpers.Tested
32.0.16.2124), AMD Ryzen 7 5800X, Windows 11 Home 10.0.26300,rustc 1.100.0 (0ef1bc386 2026-11-09), debug (test suite) and release (scripts/smoke.ps1).cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored.SKIPPEDGPU tests (2):gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64)gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64)ProjectAmericas, loading Story Mode 3D world on RTX 3060): before this fix, 8/8 runs hit0x887a0006(nvlddmkmEvent ID 13Graphics SM Warp Exception: MMU Fault, DRED page fault at GPU VA0x0); after this fix, 0/6 runs hit0x887a0006and the title progressed into rendering 3D world geometry.Regression run
main:PR head:
Not tested
scripts/smoke.ps1regression run stays in the title menu and does not enter the 3D world path that issuesExecuteIndirectwith a two-pass PSO; that crash path was verified separately by loading Story Mode (reported under Tested) and by the new unit test.AI use