Commit Graph

6 Commits

Author SHA1 Message Date
a330747f23 d3d12_xs: keep the heap-directly-indexed flags on a host that refuses to serialize them 2026-11-24 19:16:06 -03:00
a8dd36df99 d3d12_xs_root_signature_test: skip 1.2 when the runtime doesn't know it
Windows 10's D3D12 runtime fails the 1.2 feature query with E_INVALIDARG instead of reporting a lower version, so the test failed there.
2026-11-22 09:52:41 +01:00
694ae035ad tests: D3D12 tests skip without WARP and on host-dependent serializer checks
device_proxy and d3d12_xs_root_signature need a WARP adapter, which
Wine doesn't have: without one they exit 77, which CTest reads as a
skip (SKIP_RETURN_CODE). A missing DXGI factory still fails.

root_sig_test checked that the host serializer rejects the Xbox flag
byte. Microsoft's d3d12.dll does; Wine's (vkd3d) doesn't validate it.
That is a property of the host, not of the shim, so a host that accepts
it is reported as a skip, as the deserializer check already does.
2026-11-22 03:46:44 +00:00
76782b4b9b Runtime: skip the 1.2 path in d3d12_xs_root_signature_test on old runtimes
test_version_1_2 serialized a 1.2 signature before checking feature support,
so it would fail on an in-box runtime that lacks 1.2 (e.g. Windows 11 23H2).
Check CheckFeatureSupport(D3D12_FEATURE_ROOT_SIGNATURE) up front and skip the
whole 1.2 path when HighestVersion < 1.2, matching the root_sig_test fix.

AI-assisted (Cline).
2026-11-22 00:47:28 +01:00
b157c6d673 Runtime: clear the Xbox flag high byte for 1.2 root signatures
The d3d12_xs root-signature shim cleared bits 24-31 of
D3D12_ROOT_SIGNATURE_FLAGS for 1.0 and 1.1 but forwarded 1.2 unchanged, so a
1.2 descriptor with the Xbox high flag byte would reach the PC serializer and
fail. Add the 1.2 case with the same clear_high_byte treatment.

d3d12_xs_root_signature_test gains test_version_1_2: it serializes a 1.2
signature with a descriptor table and the IA-input-layout flag, checks the
versioned reflection, compares legacy deserialization against Windows, and
creates the signature on WARP when the feature level allows.

AI-assisted (Cline).
2026-11-22 00:14:05 +01:00
ab0cf03016 fix(runtime): type D3D12 root signature forwarding 2026-11-21 18:03:59 +02:00