upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/tls_host.cpp
diff options
context:
space:
mode:
authorLuis Baker <57847961+luisbaker@users.noreply.github.com>2026-11-21 23:57:07 +0100
committerLuis Baker <57847961+luisbaker@users.noreply.github.com>2026-11-21 23:57:07 +0100
commit437081fdb69ee87e396b47e725df96736559348e (patch)
tree6a4db384a47eb1f66a63b21f4fd5fd287553070a /runtime/src/tls_host.cpp
parent8bd0087d2d0e45fc18fa78fb40b70ecfc6648854 (diff)
Runtime: parse version 1.2 root signatures, and read RTS0 table ranges from their offset
parse_rts0 refused D3D_ROOT_SIGNATURE_VERSION_1_2 blobs. 1.2 is 1.1 plus D3D12_STATIC_SAMPLER_DESC1::Flags: the PC serializer writes RTS0 version 3 with 14-dword static samplers (13 before). The model gains Version::V1_2 and StaticSampler::flags. The canonical codec writes the flags only for 1.2, so 1.0/1.1 encodings are byte-for-byte unchanged. Checking it against the real serializer found an older bug: a descriptor table's payload is {num_ranges, ranges_offset} with the ranges at that offset, but the parser read them inline after the count. Every table came back with a wrong range type and count. The oracle test only covered constants and a CBV, so it never saw it. root_signature_oracle_test now serializes 1.0, 1.1 and 1.2 signatures with a two-range table, a root SRV and two static samplers (1.2 with a UINT border colour, then non-normalized coordinates). Every sampler field, the ranges and the canonical round trip must match. root_signature_test adds hand-built 1.2 and table payloads and their truncation controls. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/tls_host.cpp')
0 files changed, 0 insertions, 0 deletions