Shaders: enable VICTORY_D3D12_DEBUG and report InfoQueue errors on pipeline refusal #2558
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2560"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-25T15:47:31Z.
Resolves #2537:
Summary
crates/victory-shader/src/emit/host.rs,Host::newpreviously ignoredVICTORY_D3D12_DEBUG=1, sovictory translate --pipelinesreported bare HRESULT codes on pipeline refusals without any D3D12 debug layer diagnostics.ID3D12Debug::EnableDebugLayerinHost::newbeforeD3D12CreateDevicewhenVICTORY_D3D12_DEBUG=1is set.compute_pipeline_with), graphics (pipeline_gs), and mesh (mesh_pipeline_with) pipeline creation throughHost::create_pipeline:VICTORY_D3D12_DEBUG=1is unset, runs lock-free in parallel across workers.VICTORY_D3D12_DEBUG=1is set, serializes pipeline creation andID3D12InfoQueueclear/drain under a staticMutexso concurrent census workers sharing the adapter's D3D12 device never clear or steal each other's messages, and appends the first D3D12 error message to the returned error string.Verification
emit::host::tests::debug_pipeline_creation_drains_info_queue_on_failure(passes withVICTORY_D3D12_DEBUG=1on WARP).cargo test -p victory-shader --lib emit::host::tests::debug_pipeline_creation_drains_info_queue_on_failure(1 passed).cargo clippy -p victory-shader --all-targets --all-features -- -D warnings(clean).cargo run -p xtask -- policy(184 files ok).upstream-sync referenced this pull request2026-11-25 17:05:03 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T18:39:37Z.
Automated triage for the maintainers.
Proposed close. Duplicate of #2562. This enables the D3D12 debug layer in
emit::host::create_deviceunderVICTORY_D3D12_DEBUG=1and adds the firstID3D12InfoQueueerror to pipeline-creation failures. #2562 covers the same goal (#2537) more completely: it gates on thediagnosticsfeature likevictory-gpu/src/host.rs, enables the layer once before the process's first device, reports refused root signatures too, and adds--only. Two points from the earlier review are also still open here: the layer is enabled insidecreate_devicerather than once per process, andcreate_pipelinecallsClearStoredMessageson the shared device's queue. If something here is missing from #2562, please raise it there.CI: passing.
This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the
triage: proposed closelabel.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-25T22:54:01Z.
Compared with #2562 on an RTX 4060 and WARP (no debug layer here). It adds no regressions, but it now conflicts with
mainand #2562, and it lacks thediagnosticsgating, the root signatures and--only. Details: https://github.com/Marvisak/VIctory/issues/2537#issuecomment-7176909182 (AI-assisted)Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-26T05:38:39Z.
Closing in favor of #2562 which covers the diagnostics gating, once-per-process init, and --only flag
Pull request closed