diff options
| author | Jess-Doit <doit.jesss@gmail.com> | 2026-11-21 16:39:51 -0800 |
|---|---|---|
| committer | Jess-Doit <doit.jesss@gmail.com> | 2026-11-21 17:01:11 -0800 |
| commit | bd7e53f43a262efc97d613ba2d0b55a97002811c (patch) | |
| tree | a04e0b561115b9835c875f9049967ea82decfb4e /runtime/src/pe_loader.cpp | |
| parent | 22590c7bbcb4f35bdc902fc4db0e9c4f556f9c39 (diff) | |
Runtime: serialize root signature 1.2 as 1.1 on runtimes that stop at 1.1 (WIN10-ROOTSIG)
The in-box d3d12.dll of Windows 10 (and Windows 11 23H2, #361) serializes
root signatures only up to 1.1: on Windows 10 it rejects even an empty 1.2
description with E_INVALIDARG (#528). #361 made the tests skip there, but the
d3d12_xs serializer still forwarded 1.2 descriptions unchanged, so every 1.2
root signature from the package DLLs or the game failed on those hosts.
- d3d12_xs_rootsig: downgrade_root_signature_1_2_to_1_1 rewrites a 1.2
description whose static samplers all have Flags == 0 as the same root
signature in 1.1 (1.2 differs only in D3D12_STATIC_SAMPLER_DESC1::Flags).
- d3d12_xs: probe the host once with an empty 1.2 description; where it
stops at 1.1, serialize 1.2 as 1.1, or refuse one with sampler flags
with a log line.
- root_sig_test: the registered shim's 1.2 checks run on every runtime again;
new checks cover the rewrite field by field, through the registered shim
and back through the host deserializer, and the refusal.
- root_signature_oracle_test: its 1.2 cases use sampler flags, which have no
1.1 form, so they print SKIP where the host can't serialize 1.2.
- docs/d3d12_vulkan.md: the measurement and the rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions