Repository navigation
GPU: fall back to standard root signature flags when host runtime rejects 0xC01/0xC00 - #626
LAKSHYA-cmd-tech wants to merge 1 commit into
Conversation
|
Tested Environment: Windows 11 Pro build 26300, AMD Ryzen 7 5700X, 16 GB, NVIDIA GeForce RTX 3060 12 GB (driver 610.88), Rust 1.98.1 Tested
Can the fallback root signature run a translated shader? Translated shaders reach their resources through
So on this GPU, a pipeline built on the fallback root signature is refused at If the Smaller notes:
Not tested: a Windows 10 in-box runtime that rejects the flags (not available here); no game data used. AI-assisted (Claude Code) ran the checks and drafted this comment. |
772d294 to
ac114f1
Compare
Summary
Fixes #598.
On Windows 10 in-box D3D12 runtimes or environments without Agility SDK / SM 6.6 root signature 1.2+ support, the serializer rejects Root Signature 1.1 with directly indexed descriptor heap flags (
0xC01/0xC00):When root signature creation failed, pipeline compilation was rejected (
None), resulting in unhandled null pointer dereferences (0xc0000005 (read 0x68)) during subsequent draw/dispatch invocations.Solution
D3D12SerializeVersionedRootSignatureordevice.CreateRootSignaturerejects the combined flags (ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT | CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED), gracefully fall back to standard root signature flags (ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUTfor graphics,NONEfor compute).pipeline::host::tests::host_root_signature_serializes_and_creates.Verification
cargo test -p victory-gpu -- --test-threads=1: 44 passed, 0 failed, 1 ignored.cargo clippy -p victory-gpu --lib -- -D warnings: 0 warnings.cargo run -p xtask -- policy: 151 files clean.