d3d12_dxr_validation_test: skip before allocating AS buffers on non-RT GPUs (OLD-7241) #617
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!617
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/617/head"
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?
@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 UTCClaimed in the coordination issue as: OLD-7241 (#14)
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.