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

オープン
#688 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
14.9k
フォーク
1.2k
平均マージ
1時間 58分
マージ済み PR(30日)
40

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ItsNotRexed/Leonida のほかの issue

ItsNotRexed/Leonida の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。