d3d12_dxr_validation_test: skip before allocating AS buffers on non-RT GPUs (OLD-7241) #617
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/617"
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?
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/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.