Skip to content

bvh_builder_test: use WARP on every hardware vendor by default (RT-89) - #1472

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
Dom-in:rt-89-bvh-warp
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
Dom-in:rt-89-bvh-warp

Conversation

@Dom-in

@Dom-in Dom-in commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: #1380 (comment) (RT-89, found by @ThatZaliaSGuy)

What and why

RT-54 made bvh_builder_test use WARP only on NVIDIA (first_hardware_vendor() == 0x10DE), because NVIDIA's DXIL reader can end the process on one of XboxBvhBuilder.dll's Xbox DXIL shaders.

AMD fails the same way. On an RX 7900 XTX (32.0.32029.2010, Windows 11) at c2967a5e, XboxBvhBuilder(device, false) faults with 0xc0000005 right after the first slot 62 call, and with LEONIDA_BVH_WARP=1 the test passes (details in #166). So the test failed by default on AMD.

Now:

  • WARP is the default whenever there is a hardware adapter, on any vendor.
  • The note it prints names the adapter's PCI vendor id.
  • LEONIDA_BVH_HARDWARE=1 keeps the hardware device, to check a newer driver; LEONIDA_BVH_WARP=1 is unchanged.

docs/d3d12_vulkan.md's RT-54 note now says AMD fails too, instead of "it isn't known whether AMD hardware takes these shaders".

Tested

Windows 11 Pro 26300, MSVC 14.44, AMD Radeon RX 9070:

  • scripts\build_runtime.ps1: builds, with no warnings or errors from bvh_builder_test.cpp.
  • ctest -R bvh_builder without LEONIDA_GAME_DIR: SKIP (no package), Passed.
  • tests/test_docs_links.py: OK.

Not run with the package. This test loads the package's own XboxBvhBuilder.dll, and I haven't run package code. @ThatZaliaSGuy, could you confirm on the RX 7900 XTX that the default run now passes (and that LEONIDA_BVH_HARDWARE=1 still reproduces the fault)?

AI-assisted (Claude Code).

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)

🤖 Generated with Claude Code

RT-54 switched to WARP only on NVIDIA (PCI vendor 0x10DE). AMD faults the same way: on an RX 7900 XTX the
XboxBvhBuilder constructor ends with 0xC0000005 right after the first slot 62 call (found by
@ThatZaliaSGuy, ItsNotRexed#166). The test now uses WARP whenever there is a hardware adapter, prints the vendor id it
skipped, and LEONIDA_BVH_HARDWARE=1 still keeps the hardware device. docs/d3d12_vulkan.md updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Proudnoob4

Copy link
Copy Markdown
Contributor

Tested faa57e5 on Windows 10 22H2 (19045, no Agility SDK), RTX 4080, NVIDIA 621.01, MSVC 14.44, with LEONIDA_GAME_DIR on my own 1.0.2.1 copy, so the package path ran too: pass.

So the new WARP default and the Windows 10 skip work together; on Windows 10 every PC-device path skips, as expected. AI-assisted (Claude Code in OpenCode): it ran these on this machine.

@ItsNotRexed
ItsNotRexed merged commit c12368e into ItsNotRexed:main Nov 22, 2026
10 of 11 checks passed
@kapitche

Copy link
Copy Markdown
Contributor

Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): pass. ctest: 82/82 on the RTX 4080 SUPER. The Intel UHD 770 failures are known and unrelated: d3d12_descriptor (min-LOD), d3d12_copy_xfmt, and d3d12_present (reported in #1380).

@Dom-in
Dom-in deleted the rt-89-bvh-warp branch November 22, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants