Since #1353 the shims' serializers (versioned and legacy) serialize a
description the host refuses for CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED or
SAMPLER_HEAP_DIRECTLY_INDEXED (Windows 10's in-box d3d12.dll): they call
the host again without the two bits and put them back into RTS0. The
three host-parity checks failed on Windows 10 for that, as reported in
review.
Where the host refuses such flags but takes the description without
them, the shim now has to return S_OK with that blob byte for byte,
except the RTS0 flags dword, which must hold all the flags, and a valid
container hash. Byte-for-byte parity stays wherever the host accepts,
and the shim still has to refuse whatever else the host refuses. The doc
bullet says the same.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The allowance is for runtimes that serialize only up to 1.1, where the shim rewrites 1.2 as 1.1. On a host that
serializes 1.2 itself it hid a real difference: under a mask that also clears 0x80, the host refuses all twelve
flags and the shim accepts 0xF7F. The host is now probed once with an empty 1.2 description, and the allowance
applies only when it refuses that too (review of old upstream PR 7234).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shims clear bits 24-31 of a root signature's flags on every descriptor and RTS0 blob. Old upstream PR 7140 asks
to make that conditional on the blob's origin, since the retail executable's root signatures carry no 0x03000000
(one 1.1 description with Flags 0x80, and a decoder whose Flags is a 16-bit read). Every public
D3D12_ROOT_SIGNATURE_FLAGS value is in bits 0-11, so the mask can't change those descriptors and no behaviour change
is needed.
root_sig_public_flags_test pins it:
- the descriptor helpers (1.0, 1.1, 1.2, legacy) keep all 65536 flag values in [0, 0xFFFF], and an RTS0 blob with
such flags is not rewritten;
- the registered serializer shims give the host's blob byte for byte for each public flag, 0x80 and all twelve, and
the deserializer shim returns the host's flags;
- a blob with 0x03000080 comes back as 0x80 with a valid container hash and no other byte changed;
- static_asserts that no public flag is in kXboxRootSignatureFlagHighByte.
docs/d3d12_vulkan.md: the executable's answer to the open question, and why the mask stays unconditional.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>