mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #617] [MERGED] d3d12_dxr_validation_test: skip before allocating AS buffers on non-RT GPUs (OLD-7241) #658
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#658
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
50aef11d3d12_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/LeonidaPR#7241(50aef11b54), where it received 6/6 independentPASShardware reviews (@EduAzevedoon RTX 2070 Super,@pulriaon RX 9070 XT,@Jadiac5on RX 9070 XT,@mrp1noon non-RT GPU,@myokexon RX 7800 XT,@gero-stackon RX 5700 XT RDNA1).What was wrong
Leonida reports
OPTIONS5.RaytracingTier == NOT_SUPPORTEDeven when XDXR or KHR acceleration structures are active, sorun_suite()inruntime/test/d3d12_dxr_validation_test.cpphad a skip path (exit 77) whenGetRaytracingAccelerationStructurePrebuildInforeturned zero. However,make_buffer()allocatedRAYTRACING_ACCELERATION_STRUCTUREbuffers earlier inrun_suite(), whichCreateCommittedResourcerefuses when neither backend is available (such asd3d12_dxr_validation_khrwithLEONIDA_RT_AS=khron a GPU withoutVK_KHR_acceleration_structure). That made the skip path unreachable and turned a non-RT GPU skip intoexit 1.What changed
Move the minimal BLAS
GetRaytracingAccelerationStructurePrebuildInfoprobe ahead of synthetic buffer allocation so non-RT GPUs cleanly exit77(Skipped) ind3d12_dxr_validation_khrwhile XDXR and RT-capable KHR runs remain unchanged.Tested
621.24, Vulkan1.4.357, hardware RT, Windows 11):ctest -R "d3d12_dxr_validation"->d3d12_dxr_validationPASS,d3d12_dxr_validation_khrPASS (and clean underLEONIDA_VK_VALIDATION=1).101.6129, Vulkan1.3.295, noVK_KHR_acceleration_structure, Windows 11):d3d12_dxr_validation_khrFAILED (exit 1atmake_buffer).d3d12_dxr_validationPASS,d3d12_dxr_validation_khrSKIPPED (exit 77).RX 5700 XTconfirmingexit 77fix), 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.