[PR #617] [MERGED] d3d12_dxr_validation_test: skip before allocating AS buffers on non-RT GPUs (OLD-7241) #658

Closed
opened 2026-11-26 20:18:37 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/617
Author: @KarolKurzyna
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: fix/dxr-validation-khr-skip


📝 Commits (1)

  • 50aef11 d3d12_dxr_validation_test: probe acceleration structures before AS buffer allocation

📊 Changes

1 file changed (+22 additions, -4 deletions)

View changed files

📝 runtime/test/d3d12_dxr_validation_test.cpp (+22 -4)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/617 **Author:** [@KarolKurzyna](https://github.com/KarolKurzyna) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `fix/dxr-validation-khr-skip` --- ### 📝 Commits (1) - [`50aef11`](https://github.com/ubiquitarianism/leonida/commit/50aef11b5414db423465c87c24f0b02255996b75) d3d12_dxr_validation_test: probe acceleration structures before AS buffer allocation ### 📊 Changes **1 file changed** (+22 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_dxr_validation_test.cpp` (+22 -4) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:37 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#658
No description provided.