Repository navigation
Shaders: wire VICTORY_D3D12_DEBUG into emit::host pipeline checks - #2568
Closed
fuzeofficlal wants to merge 1 commit into
Closed
fuzeofficlal wants to merge 1 commit into
fuzeofficlal wants to merge 1 commit into
Conversation
Owner
|
Automated triage for the maintainers. Needs work: needs the maintainer's decision. It merges cleanly into With
#2560 and #2562 address the same issue (#2537), so the maintainer may want to pick one. Generated by Claude Code |
Contributor
Author
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.
Refs #2537
Summary
Wires
VICTORY_D3D12_DEBUGand D3D12 debug-layer message extraction intovictory_shader::emit::host::Host(crates/victory-shader/src/emit/host.rs) sovictory translate --pipelinesreports driver/runtime refusal reasons instead of bareHRESULTstrings:ID3D12Debug::EnableDebugLayerat most once per process (Once) inHost::newwhenVICTORY_D3D12_DEBUGis set and not"0", before any device is created (matchingvictory-gpu's switch semantics without adding fields topub struct Host).CreateComputePipelineState,CreateGraphicsPipelineState, andCreatePipelineStateinHost::capture_pipeline_error:ID3D12InfoQueue1::RegisterMessageCallbackscoped via an RAII guard into athread_local!slot so multi-threadedtranslate --pipelinesworkers sharing the adapter's singletonID3D12Devicecapture their own synchronousERROR/CORRUPTIONmessage without lock contention or cross-thread queue clearing.ID3D12InfoQueueread/clear path whenID3D12InfoQueue1is unavailable.<debug reason> (<hresult>)) sotranslate --pipelines --listoutput and failure tally buckets stay well-formed.Verification
crates/victory-shader/tests/d3d12_debug_pipeline.rstestingVICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DEBUG=0across compute, graphics, and mesh pipeline refusals (single-threaded and 4-thread concurrent workers) on both SM 6.6 hardware (RTX 5090) and D3D12 WARP.cargo clippy --workspace --all-targets -- -D warningscargo xtask policy