Repository navigation
Conversation
GPU-based validation runs shader-side checks the plain debug layer and DRED miss - out-of-bounds UAV/descriptor access, SetMeshOutputCounts past the declared maximum, resource-state and RT/DSV format mismatches - the fault class that removes the device with no page fault. agility::enable_gpu_based_validation enables the debug layer plus SetEnableGPUBasedValidation (ID3D12Debug1) once, before device creation. It is wired into the game path (real.rs) and the test runner, and the existing info-queue message callback now also fires for GBV so validation messages reach xcl.log instead of only a debugger. Off by default; builds on the existing debug-layer and DRED plumbing without changing it. README documents the switch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
5 tasks
Contributor
|
Review (head 4fe6a83, diff read, not a merge-check; draft, conflicts with main,
Fine:
Main has nothing like it yet; #3349 turns GBV on only inside one of its own tests. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Contributor
|
No open or merged PR adds GPU-based validation. One point: Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
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.
Adds GPU-based validation behind
XCL_D3D12_GBV. GBV runs shader-side checks the plain debuglayer and DRED miss — out-of-bounds UAV/descriptor access,
SetMeshOutputCountspast the declaredmaximum, resource-state and RT/DSV format mismatches — which is the fault class that removes the
device with no page fault (the symptom behind the two-pass mesh hang,
0x887A0005).What is in it
agility::enable_gpu_based_validation()incrates/xcl/src/gpu/agility.rs:ID3D12Debug1,debug layer +
SetEnableGPUBasedValidation(true), once per process, before device creation.crates/xcl/src/hle/d3d12x/real.rs(game path) andgpu/recomp/runner.rs(testrunner). The existing info-queue message callback now also fires for GBV, so validation
messages reach
xcl.lograther than only a debugger.This builds on the existing debug-layer and DRED plumbing and does not change it.
Tested
cargo build -p xcl --lib: builds clean.D3D12SDKLayers.dllnext toD3D12Core.dll,then launch a title with
XCL_D3D12_GBV=1and readxcl.log.Regression run
real.rs,agility.rs,runner.rs): needs the twoxcl-smokeblocks(main vs this head) — pending the GPU run. Draft until then. The switch is off by default, so a
default run exercises none of the new path.
Not tested
AI use
🤖 Generated with Claude Code