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

Abierto
#688 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

Start with the bvh_builder test and create_device_proxy, which calls QueryInterface for the requested IID on the host device. Check first whether #634 already claims the test-skip part. The reference for the skip is root_sig after #597, and runtime/shims/d3d12_xs.cpp is where the Xbox-ABI device wrapping happens. Done means the test skips with a reason on Windows 10 without ID3D12Device11 while the LEONIDA_BVH_DEVICE=vulkan path still runs. The Vulkan CreateRootSignature gap and the default-backend hypothesis are separate work.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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_test Result
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=vulkan proxy 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=1 the 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.

Lenguaje dominante
Python
Estrellas
14.9k
Forks
1.2k
Merge medio
1 h 58 min
PR fusionados (30 d)
40

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ItsNotRexed/Leonida

Todos los issues de ItsNotRexed/Leonida

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.