Repository navigation
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.
Owner
Author
|
Upstream PR xcl-dev#1124 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 xcl-dev#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
Mirror of xcl-dev#1124 (auto-synced, do not edit).