diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-23 14:41:17 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 06:05:46 -0500 |
| commit | a634430fec489c0cc1f3475fe4dddfdbcde25e11 (patch) | |
| tree | 85a7eb7f875b50558e24aa7ebf69a3c9f319c4b6 /runtime/src/binary_occlusion.comp | |
| parent | 21625bca8c675c62f9dbffc318ce6a59d57faf31 (diff) | |
root_signature: accept root constants of 0 values, as the host does (D3D-942)
pack() and pack_stage() refused a 32-bit-constants parameter with Num32BitValues == 0, so CreateRootSignature
failed where host D3D12 answers S_OK (the serializer warns for versions 1.0 and 1.1; both devices create it).
Such a parameter now takes no dwords and no cost: it gets no provenance entry in pack(), and in pack_stage() it
shares its first SGPR with the next parameter, so every other offset is unchanged. The Vulkan push-constant range
is the fixed ShaderUserData block, not per parameter, so no zero-size range is created; the command list already
refuses any write past a parameter's constant count. 65 constants stay refused by the 64-dword cost limit.
root_signature_test: zero-value constants alone, between other parameters and from a hand-built RTS0 blob (both
packers); 64 constants pass the cost limit and are refused only as a spill; 65 by the cost limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/binary_occlusion.comp')
0 files changed, 0 insertions, 0 deletions