Repository navigation
gpu: trace descriptor history and GPU-written Mesh arguments - #3321
wish131400 wants to merge 1 commit into
Conversation
|
Follow-up integration check, separate from the passing fixture in this PR: I found an existing source-built scalar-input positive failing on the public #3248 head Two bounded local integration runs did not reach a valid Mesh argument capture. The later run reached native Compute attempts but stopped earlier in the rendering dependency chain: one PSO creation failure and two unsupported texture-UAV bindings, with zero translated draws/Mesh submissions. #3049 already supplies the relevant broader in-process texture binding work. A separate original-source constant-store The generic descriptor history also reaches its 8192-event truncation limit during initialization; it must be targeted before claiming complete later producer history. This PR remains draft and does not close #3310: the actual producer, same-resource/same-offset nonzero post-write/pre-consume records, and a real Mesh scene-color change remain unverified. No title assets, shader bytes, captures or private logs are included here. |
Change
Refs #3310. A zero indirect Mesh count can come from a missing or stale descriptor copy, an SRV pointing at the wrong scalar, or the consumer using a different argument offset. Add a source-built fixture that distinguishes these cases and an opt-in runtime descriptor-history diagnostic.
The fixture traces a source-built Compute write of scalar
2, an SRV-driven updater writing(2,1,1), fenced post-write and pre-consume snapshots of the same 12-byte interval, and a guestExecuteIndirectMesh submission whose complete 4x2 scene-color readback is checked. Missing-copy, stale-copy, wrong-SRV-offset and wrong-argument-offset controls must fail the same positive oracle. A sixth process checks the positive case with tracing disabled.X2W_D3D12_DESCRIPTOR_HISTORY=1records guest token bytes before publication, old/new shadow IDs, create/copy/overwrite order, guest and desktop descriptor identities, buffer SRV first element/stride and backing resource. CPU sequence numbers are explicitly separate from GPU queue/fence evidence. The switch is off by default, bounded to 8,192 events, and adds no GPU synchronization. It does not intercept arbitrary guest CPU stores.The test reuses the existing indirect Mesh executable and shaders. The WARP variant is in the PR smoke preset. Experiment, commands and diagnostic limits are documented alongside the runtime environment switch.
Verification
Tested commit
42a18553on base32dc3d7c3cdc4be79afdad4cc04709e76d99a795. Windows 10 Pro build 19045; NVIDIA GeForce RTX 4070 Ti SUPER; driver32.0.15.7270; MSVC19.43.34810; DXC1.9.2609; Agility SDK 620; D3D12 debug layer enabled.For each of
devandrelease:Repeat the two commands with
--preset releasefor Release.Each configuration: 21 passed, 0 failed, 2 capability skips out of 23 selected tests. Both skips were local WARP Mesh support (
startup_indirect_mesh_warpandstartup_mesh_argument_provenance_warp). The new hardware test passed all six processes with no device removal or debug-layer ERROR/CORRUPTION messages.(2,1,1)(2,1,1)(0,1,1)(0,1,1)(0,1,1)(0,1,1)(0,1,1)(0,1,1)(2,1,1)(0,1,1)Also passed:
python -B tests/docs_links_check.py(154 Markdown files, 676 links).python -B tests/bidi_controls_check.py.git diff origin/main --check.GitHub Actions run 46130729442 completed successfully for this head:
startup_mesh_argument_provenance_warptest passed on hosted WARP in 0.60 seconds./O2job and coverage publication were skipped by PR workflow policy; local Release coverage is reported above.Evidence and follow-up
The fixture is original source under the repository's MIT license. It publishes no external shader inputs, captures, SDK binaries, game content or private logs. Producer HLSL and submission/fences are native desktop D3D12; descriptor creation/copy and the indirect Mesh consumer use the guest wrappers.
This is the fixture/diagnostic portion of #3310, not its matched integration acceptance. The reported 48 zero records were not reproduced. A matching real integration must still identify its scalar-input write and descriptor history, prove nonzero identical records at the same resource/offset, and show a real Mesh submission changing scene color before composition. The fixture does not exercise translated gfx1013 producer code, guest queue preprocessing or XMem refresh. #3091/#3094 remain separate open integration work. Keep #3310 open.
AI-assisted implementation, review and local verification.
Checklist