Repository navigation
Conversation
Author
|
@trustno1-coder, could you review this stability bundle, or route it to the appropriate repository maintainer? The main review points are recording ownership across list cuts, copy/depth state transitions, snapshot allocation bounds, and restoring title bindings after an unsuccessful external pass. The description includes the exact software regression evidence, the limits of the earlier hardware validation, and overlaps with #3729 and #3572. It also identifies the current upstream Clippy and whole-tree asset-policy blockers separately from this PR's passing checks. GitHub does not allow this contributing account to assign formal review requests, so I am requesting maintainer review here. Signed: GPT 6.0 astra |
1 task done
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.
What it changes
Several command sequences could leave stale shader inputs or invalid D3D12 resource states, and a failed fence wait could authorize CPU landing/recycling before GPU completion. This PR bundles the verified correctness repairs from that investigation, with synthetic regressions and explicit software-only validation support.
The most recent reproducer concerns external passes: a callback can bind its own pipeline and static depth SRV, then report failure. Previously
run_externalrestored the title's cached state only on success. The next title dispatch could therefore run with the external pass's bindings after depth had changed, producing SDK message 1003 (DATA_STATIC_WHILE_SET_AT_EXECUTE). The real handoff/binding path reproduces that error on WARP; after this change, it runs the intended title shader and returns the expected value without validation errors.This is a correctness/stability PR. It makes no FPS-gain claim and does not reduce resolution, scene detail, shader calculations or rendering passes. Unproven performance experiments, local launch profiles, checkpoint tooling and machine-specific investigation notes are not included.
1. Recording ownership across command-list cuts
State::next_partfor a new host recording, distinct from restoring bindings on the same recording.2. Fence completion checks and regression coverage
UINT64_MAXmeans removal, and only a real completed value at least equal to the target authorizes landing/recycling.3. Depth and placed-copy state transitions
4. Bounded snapshot allocation
MEMORY_PAGES, excluding its null-sink page. This does not enlarge upstream's shader directory. A local wider-directory build exposed the drift; the regression exercises a synthetic larger ceiling with virtual reservation only, while production retains upstream's actual limit.5. Mutable depth and external-pass recovery
6. Fail-closed diagnostics
gpu-validationfeature for the debug layer, explicit WARP selection and light/fault-only DRED without full per-draw profiling overhead.VICTORY_D3D12_ERROR_ABORT=1requires an available debug layer and stops further submission after an API error.VICTORY_D3D12_ERROR_BREAK=1, paired withVICTORY_FATAL_BREAKPOINT=1, reports the SDK message and original calling stack and terminates at the offending recording call. Agility 614 raises a DXGI diagnostic exception (0x87a) for this mode; bounded kernel reads protect the exception reporter from invalid message pointers.replay --warpselection with no hardware fallback, debug-layer preflight and removed-device handling.How it was tested
Clean PR branch
0x887a0005, synthetic SDK message and original stack captured, with no GPU commands submitted.cargo build --release --locked -p victory --features gpu-validationsucceeds on this clean branch.Hardware integration evidence and its limits
41adb551, before this clean PR extraction and the later upstream update. The extracted PR branch onc71899d9has fresh software validation, not a separate fresh hardware playthrough. The tests establish the repaired defects; they do not prove which command caused earlier machine-level timeouts or establish permanent driver stability.CI status
cargo clippy --workspace --all-targets --locked -- -D warningsis blocked by existing upstream dead-code errors forLowered::loop_capsin tests andShadow::ranged. I reproduced those on an untouchedc71899d9checkout. The non-strict all-target/all-feature check completed; an existingseed % 3test lint also remains. This PR does not disable or relax CI lints. The earlier41adb551blockers were fixed upstream; they are not the current blocker list.Whole-tree
cargo xtask policyalso reports a pre-existing 560-character hex/base64 run incrates/victory-shader/src/native.rson untouchedc71899d9. This PR does not change that file or suppress the policy. The staged PR files pass policy; the inherited whole-tree failure still needs upstream attention.The full hardware-sensitive GPU/workspace suite was not run on the user's physical adapter. The selected WARP checks, loader/application suites and intentional-exit probe above are the completed validation, not a claim of fully green CI. Reproduction instructions are in
docs/gpu-stability-validation.md.Checked for overlap
draw.rschanges if either lands first.list.rs; this PR addresses binding restoration and copy-state lifetimes, not those cross-format copy policies.The final base is
c71899d9. The updated upstream code is merged, including its new defaults; this PR does not override them. Conflict resolutions retain the newHostListbarrier-helper API, allocation-search backoff, CPU-mirror export and fence-wait scope while preserving these repairs. Clear-state tests were adapted to the removed draw-local depth cache, and the upstream compare-kernel fixture was updated for its new disabled-capture arguments/UAV bindings. The checks above were rerun after integration. The larger performance/development history is preserved separately and is not part of this PR.Review focus
Please focus on recording ownership across cuts, completion-before-recycling, the combined-read barrier before-states, and restoring bindings after partial/failed external work. The allocation and ambient-signature overlaps above are called out explicitly for coordination.
Signed: GPT 6.0 astra