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

Merged
KarolKurzyna merged 1 commit from upstream-pr/617 into main 2026-11-24 16:39:17 +00:00
KarolKurzyna commented 2026-11-24 10:00:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KarolKurzyna on 2026-11-24T10:00:08Z.


Claimed in the coordination issue as: OLD-7241 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128154815)

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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5469983541 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/617). Originally posted by [KarolKurzyna](https://github.com/KarolKurzyna) on 2026-11-24T10:00:08Z. --- Claimed in the coordination issue as: OLD-7241 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128154815) 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!617
No description provided.