Repository navigation
d3d12_set_descriptor_heaps_test: skip the heap-direct flags where the host cannot serialize them (Windows 10) - #7781
Closed
ddaikodaiko wants to merge 1 commit into
Closed
ddaikodaiko wants to merge 1 commit into
ddaikodaiko wants to merge 1 commit into
Conversation
… host cannot serialize them (Windows 10) The heap-direct root-signature bits came with Shader Model 6.6; Windows 10's built-in d3d12.dll predates them and refuses to serialize a description that carries them. The test built the description and CHECKed a non-empty blob, so it failed on Windows 10 even though the layer is correct. Probe the serializer first and print SKIP there, as root_signature_oracle does.
|
AI-assisted review/test. PASS on commit 6827b21.
|
Author
|
Superseded by #7718, which appeared 44 seconds before this claim and solves it better: it patches the heap-direct bit in the flag word by hand instead of skipping the check, so the direct-index flags are still verified on Windows 10. Closing in favour of it. Thanks to the reviewer for the Windows 11 PASS and for pointing at #7718. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claim: #7333 comment (no item ID yet).
What and why
d3d12_set_descriptor_heaps_test(added in #6674) builds a 1.0 root signature whose flags areCBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED, serializes it with the host'sD3D12SerializeVersionedRootSignature, and then doesCHECK(!blob.empty())at line 341 before creating the root signature and checking that the flags survive onRootArgumentLayout.The heap-direct bits are Shader Model 6.6. Windows 10's in-box
d3d12.dllpredates them: it refuses the description with "Unsupported bit-flag set", sod3d12test::serialize_root_signaturereturns an empty vector and the test fails on a layer that is doing the right thing. Nothing in the test depended on the failure being real; it is a host capability, not a layer result.The change probes the serializer, and where it cannot serialize the description it prints
and skips only that block. This is the guard #4731 already applied to
root_signature_oraclefor the same Windows 10 behaviour; the rest of the test is unchanged and still runs everywhere.Testing
Windows 10 19045, Ryzen 5 1600, NVIDIA GeForce RTX 3060 Ti (driver 32.0.16.1088, Vulkan 1.3), MSVC 19.44.35229.0, Windows SDK 10.0.26100.0,
RelWithDebInfo.Before, on
3d21852:After:
with the SKIP line above in the test's output, and the remaining report unchanged:
Full
ctest -j2on this host, after this change: 237 configured, 4 failed, the same four Windows 10 items that already have open PRs —root_signature_oracle(#4731),d3d12_close_parity(#6071),d3d12_execute_indirect_validation(#7393) andd3d12_vulkan_device(#7125). Before this change the same run had those four plusd3d12_set_descriptor_heaps, so this is the only one the change touches; nothing new fails.No game files or GPU-specific data were used; the fix itself is CPU-only and only the test run needs a Vulkan device. AI-assisted.