Repository navigation
Runtime: CreateRootSignature and CreateQueryHeap answer invalid arguments as the host does - #2242
Conversation
…ents as the host does Measured against the host D3D12 runtime (RTX 5070, driver 621.14) with d3d12_vulkan_device_test's compare_invalid_arguments, five answers differed: - CreateRootSignature took a node mask other than node 0 (host: E_INVALIDARG), took a DXBC blob passed with more bytes than its own size (host: E_INVALIDARG), and answered a null output with E_POINTER. The host answers a null output with S_FALSE before it looks at the blob or the node mask. - CreateQueryHeap answered an unknown type (past PIPELINE_STATISTICS1) with E_NOTIMPL (host: E_INVALIDARG), and a null output with S_FALSE (host: E_UNEXPECTED, after the description checks). compare_invalid_arguments gets 30 "query heap:" and "root signature:" cases. The root signature blobs come from the host's serializer. d3d12_vulkan_device_test's own null-output check now expects E_UNEXPECTED. Known query types this layer has no path for stay E_NOTIMPL, and more than 32 root dwords stay refused (pack()). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested 7cc2261 on an NVIDIA GeForce RTX 3050 Laptop GPU, driver 32.0.16.2101, Windows 11, native MSVC (VS 2022 Build Tools, Ninja, RelWithDebInfo), with
AI-assisted (Claude Code). |
|
Tested on Windows 11 with two GPUs on one machine (MSVC 14.51, llvm-mc 23.1.6): no regression. RTX 4080 SUPER: 115/116. Not from this PR: |
|
Tested
AI-assisted (Claude Code). |
|
Tested |
|
Tested 56000c7 on AMD Radeon RX 7600 (RDNA3), AMD 26.11.2 (LLPC), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363.0, llvm-mc 21.1.8: pass.
AI-assisted (Claude Code, reviewed with Codex). No game files. |
Claimed in the coordination issue as: new D3D item (claim):
CreateRootSignatureandCreateQueryHeapanswer invalid arguments as the host runtime does.What and why
I compared these two methods with the host D3D12 runtime through
d3d12_vulkan_device_test'scompare_invalid_arguments, on an RTX 5070 with driver 621.14. Five answers differed from the host:CreateRootSignature,NodeMask2 (or any bit past node 0)S_OKE_INVALIDARGCreateRootSignature, a valid DXBC blob passed with 4 or 16 extra bytesS_OKE_INVALIDARGCreateRootSignature, null outputE_POINTERS_FALSE, even for a junk blob or node mask 2CreateQueryHeap, unknown type (8, 99, -1)E_NOTIMPLE_INVALIDARGCreateQueryHeap, valid description, null outputS_FALSEE_UNEXPECTEDHow each call now answers:
CreateRootSignature:S_FALSEfirst.E_INVALIDARG.E_INVALIDARG.parse_rts0accepts on its unit-test path, is not size-checked.CreateQueryHeap:PIPELINE_STATISTICS1(7) isE_INVALIDARG.E_NOTIMPL.E_UNEXPECTED, and noVkQueryPoolis made for it.The tests:
compare_invalid_argumentsgets 13query heap:and 17root signature:cases, valid ones included. The root-signature blobs come from the host's ownD3D12SerializeRootSignature.CreateQueryHeap(..., nullptr) == S_FALSEcheck in the same test now expectsE_UNEXPECTED. It came from D3D-15 (7079108) and was not compared with the host.docs/d3d12_vulkan.md(theCreateRootSignaturebullet and section 4.6) says how both calls answer.Not changed:
pack()(the console's spill layout is open). For example, 63 root constants: hostS_OK, hereE_INVALIDARG.Num32BitValues = 0: hostS_OK, hereE_INVALIDARG.E_NOTIMPL. These cases are not in the comparison.Tested
AI-assisted (Claude), on behalf of dev-ewann. NVIDIA GeForce RTX 5070, driver 621.14, Vulkan 1.4.357, Windows 11 build 26300, MSVC 19.44 (BuildTools 2022), Ninja RelWithDebInfo, rebased on
main4947579 (after round 39) and retested there. No game files.d3d12_vulkan_device_testwithLEONIDA_D3D49_VERBOSE=1: all 30 new cases give the same HRESULT as the host, with 0 mismatches overall, exit 0.main's (4eb6155)d3d12_vulkan_device.cpp: 13query heap:/root signature:mismatches, and the test fails.S_FALSEE_POINTERctest: 124 of 124 passed (the ones needing game files skip).tests/test_docs_links.py,test_docs_list_items.py,test_docs_repo_paths.py: OK.test_docs_design_rows.pyfails onmainalready (PROC-106, docs: one row per topic again in design.md, README.md and testing.md (PROC-106) #2063) and fails the same way here.Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)🤖 Generated with Claude Code