#688

Windows 10: bvh_builder fails on every PC adapter, the host D3D12 device has no ID3D12Device11 (E_NOINTERFACE)

OpenProudnoob4opened 12h ago

On Windows 10 22H2 (10.0.19045, no Agility SDK), with LEONIDA_GAME_DIR set to my own 1.0.2.1 copy, bvh_builder is the only ctest failure on main c432cdc: 26 of 27 pass, and root_sig and root_signature_oracle pass with their Windows 10 skips from #597. RTX 4080, driver 621.01.

bvh_builder_testResult
default (PC device, RTX 4080)FAIL Xbox-ABI device proxy created as ID3D12Device11 (0x80004002)
LEONIDA_BVH_WARP=1 (Microsoft Basic Render Driver)the same 0x80004002
LEONIDA_BVH_DEVICE=vulkanproxy created; the constructor's first device call (slot 16) logs unimplemented ID3D12Device::CreateRootSignature, the DLL reports Unexpected internal Failure: pDevice->CreateRootSignature(...), and the constructor throws after 0 ms
LEONIDA_BVH_DEVICE=vulkan + LEONIDA_BVH_FLAG=1the same

Cause of the first two rows: create_device_proxy answers the requested IID with a QueryInterface on the host device, and the Windows 10 runtime has no ID3D12Device11 (it needs the Agility SDK or Windows 11), on hardware and WARP alike. So the test fails on every Windows 10 machine with a game copy, before the DLL makes a call. It's the same kind of limit as #528.

Suggested:

  1. Test: skip with a reason when the host device has no ID3D12Device11, as root_sig does since #597; LEONIDA_BVH_DEVICE=vulkan still runs. I'll take this one (claiming in #634).
  2. Vulkan device: CreateRootSignature is the builder's first call (A.2 in docs/d3d12_vulkan.md counts 17 root signatures and 53 compute PSOs on WARP). D3D-3 (#291) adds root signatures, so LEONIDA_BVH_DEVICE=vulkan is a real-DLL check for it; I'll run it on #291.
  3. Hypothesis, not measured (the executable isn't in my copy): D3D12XboxCreateDevice (runtime/shims/d3d12_xs.cpp) wraps the host device by default. If the game asks it for ID3D12Device11 too, the default backend would fail the same way on Windows 10, and only LEONIDA_D3D12=vulkan would get past it.

Counts and one-line symptoms only; nothing from the DLL beyond what the test prints. AI-assisted (Claude Code in OpenCode): it ran these on this machine.

Activity

0

No activity yet.