Repository navigation
Shaders: enable VICTORY_D3D12_DEBUG and report InfoQueue errors on pipeline refusal - #2560
ashrafsdrop wants to merge 1 commit into
Conversation
|
Automated triage for the maintainers. Proposed close. Duplicate of #2562. This enables the D3D12 debug layer in CI: passing. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the Generated by Claude Code |
|
Compared with #2562 on an RTX 4060 and WARP (no debug layer here). It adds no regressions, but it now conflicts with |
…peline refusal Resolves Marvisak#2537: - Enable ID3D12Debug layer in victory_shader::emit::host::Host::new when VICTORY_D3D12_DEBUG=1 is set. - Serialize pipeline creation and ID3D12InfoQueue clear/drain under a process-wide mutex only when VICTORY_D3D12_DEBUG=1 so parallel census workers never steal each other's messages while non-debug runs remain lock-free. - Append the first D3D12 debug error message to pipeline refusal errors across compute, graphics, and mesh pipeline creation. - Add debug_pipeline_creation_drains_info_queue_on_failure unit test.
4ef9904 to
e384e9e
Compare
|
Closing in favor of #2562 which covers the diagnostics gating, once-per-process init, and --only flag |
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).