Shaders: enable VICTORY_D3D12_DEBUG and report InfoQueue errors on pipeline refusal #2560
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2560
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@ashrafsdrop on GitHub · 2026-11-25 15:47 UTC · original
ashrafsdrop:shader/host-d3d12-debug-2537→main· +116 −4 · 1 files · 1 commits · closed without mergingResolves #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).4ef9904644toe384e9ec0d@Marvisak on GitHub · 2026-11-25 18:39 UTC · original · edited 2026-11-26 04:22 UTC
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
@KainanP on GitHub · 2026-11-25 22:54 UTC · original
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: #2537 (AI-assisted)@ashrafsdrop on GitHub · 2026-11-26 05:38 UTC · original
Closing in favor of #2562 which covers the diagnostics gating, once-per-process init, and --only flag
Pull request closed