upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-23 14:41:17 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 06:05:46 -0500
commita634430fec489c0cc1f3475fe4dddfdbcde25e11 (patch)
tree85a7eb7f875b50558e24aa7ebf69a3c9f319c4b6 /runtime/test/queue_proxy_test.cpp
parent21625bca8c675c62f9dbffc318ce6a59d57faf31 (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/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions