d3d12_dxr_validation_test: skip before allocating AS buffers on non-RT GPUs (OLD-7241) #617

Manually merged
github merged 1 commit from gh-pr/617/head into gh-pr/617/base 2026-11-26 09:12:00 +00:00
Owner

@⁠KarolKurzyna on GitHub · 2026-11-24 10:00 UTC · original
KarolKurzyna:fix/dxr-validation-khr-skip → main · +22 −4 · 1 files · 1 commits · merged 2026-11-24 16:39 UTC

Claimed in the coordination issue as: OLD-7241 (#14)

Carried over from upstream ItsNotRexed/Leonida PR #7241 (50aef11b54), where it received 6/6 independent PASS hardware reviews (@EduAzevedo on RTX 2070 Super, @pulria on RX 9070 XT, @Jadiac5 on RX 9070 XT, @mrp1no on non-RT GPU, @myokex on RX 7800 XT, @gero-stack on RX 5700 XT RDNA1).

What was wrong

Leonida reports OPTIONS5.RaytracingTier == NOT_SUPPORTED even when XDXR or KHR acceleration structures are active, so run_suite() in runtime/test/d3d12_dxr_validation_test.cpp had a skip path (exit 77) when GetRaytracingAccelerationStructurePrebuildInfo returned zero. However, make_buffer() allocated RAYTRACING_ACCELERATION_STRUCTURE buffers earlier in run_suite(), which CreateCommittedResource refuses when neither backend is available (such as d3d12_dxr_validation_khr with LEONIDA_RT_AS=khr on a GPU without VK_KHR_acceleration_structure). That made the skip path unreachable and turned a non-RT GPU skip into exit 1.

What changed

Move the minimal BLAS GetRaytracingAccelerationStructurePrebuildInfo probe ahead of synthetic buffer allocation so non-RT GPUs cleanly exit 77 (Skipped) in d3d12_dxr_validation_khr while XDXR and RT-capable KHR runs remain unchanged.

Tested

  • NVIDIA GeForce RTX 3070 Ti (621.24, Vulkan 1.4.357, hardware RT, Windows 11):
    • ctest -R "d3d12_dxr_validation" -> d3d12_dxr_validation PASS, d3d12_dxr_validation_khr PASS (and clean under LEONIDA_VK_VALIDATION=1).
  • Intel(R) UHD Graphics 770 (101.6129, Vulkan 1.3.295, no VK_KHR_acceleration_structure, Windows 11):
    • Before fix: d3d12_dxr_validation_khr FAILED (exit 1 at make_buffer).
    • After fix: d3d12_dxr_validation PASS, d3d12_dxr_validation_khr SKIPPED (exit 77).
  • Plus 6 independent upstream reviews across NVIDIA Turing, AMD RDNA1 (RX 5700 XT confirming exit 77 fix), RDNA3 (RX 7800 XT), and RDNA4 (RX 9070 XT).

AI-assisted.

**@⁠KarolKurzyna** on GitHub · 2026-11-24 10:00 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/617) `KarolKurzyna:fix/dxr-validation-khr-skip` → `main` · +22 −4 · 1 files · 1 commits · merged 2026-11-24 16:39 UTC Claimed in the coordination issue as: OLD-7241 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) Carried over from upstream `ItsNotRexed/Leonida` PR `#7241` (`50aef11b54`), where it received **6/6 independent `PASS` hardware reviews** (`@EduAzevedo` on RTX 2070 Super, `@pulria` on RX 9070 XT, `@Jadiac5` on RX 9070 XT, `@mrp1no` on non-RT GPU, `@myokex` on RX 7800 XT, `@gero-stack` on RX 5700 XT RDNA1). ### What was wrong Leonida reports `OPTIONS5.RaytracingTier == NOT_SUPPORTED` even when XDXR or KHR acceleration structures are active, so `run_suite()` in `runtime/test/d3d12_dxr_validation_test.cpp` had a skip path (`exit 77`) when `GetRaytracingAccelerationStructurePrebuildInfo` returned zero. However, `make_buffer()` allocated `RAYTRACING_ACCELERATION_STRUCTURE` buffers earlier in `run_suite()`, which `CreateCommittedResource` refuses when neither backend is available (such as `d3d12_dxr_validation_khr` with `LEONIDA_RT_AS=khr` on a GPU without `VK_KHR_acceleration_structure`). That made the skip path unreachable and turned a non-RT GPU skip into `exit 1`. ### What changed Move the minimal BLAS `GetRaytracingAccelerationStructurePrebuildInfo` probe ahead of synthetic buffer allocation so non-RT GPUs cleanly exit `77` (`Skipped`) in `d3d12_dxr_validation_khr` while XDXR and RT-capable KHR runs remain unchanged. ### Tested - **NVIDIA GeForce RTX 3070 Ti** (`621.24`, Vulkan `1.4.357`, hardware RT, Windows 11): - `ctest -R "d3d12_dxr_validation"` -> `d3d12_dxr_validation` **PASS**, `d3d12_dxr_validation_khr` **PASS** (and clean under `LEONIDA_VK_VALIDATION=1`). - **Intel(R) UHD Graphics 770** (`101.6129`, Vulkan `1.3.295`, no `VK_KHR_acceleration_structure`, Windows 11): - Before fix: `d3d12_dxr_validation_khr` **FAILED** (`exit 1` at `make_buffer`). - After fix: `d3d12_dxr_validation` **PASS**, `d3d12_dxr_validation_khr` **SKIPPED** (`exit 77`). - Plus 6 independent upstream reviews across NVIDIA Turing, AMD RDNA1 (`RX 5700 XT` confirming `exit 77` fix), RDNA3 (`RX 7800 XT`), and RDNA4 (`RX 9070 XT`). AI-assisted.
Leonida reports OPTIONS5.RaytracingTier == NOT_SUPPORTED even when XDXR or KHR
acceleration structures are active, so run_suite() had a skip path (exit 77)
when GetRaytracingAccelerationStructurePrebuildInfo returned zero. However,
make_buffer() allocated RAYTRACING_ACCELERATION_STRUCTURE buffers earlier in
run_suite(), which CreateCommittedResource refuses when neither backend is
available (such as d3d12_dxr_validation_khr with LEONIDA_RT_AS=khr on a GPU
without VK_KHR_acceleration_structure). That made the skip path unreachable
and turned a non-RT GPU skip into exit 1.

Move the minimal BLAS PrebuildInfo probe ahead of synthetic buffer allocation
so non-RT GPUs cleanly exit 77 in d3d12_dxr_validation_khr while XDXR and
RT-capable KHR runs remain unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:11:59 +00:00
github manually merged commit 50aef11b54 into gh-pr/617/base 2026-11-26 09:12:00 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.