gpu: test triangle opacity on DXR Tier 1.0 #827
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/833"
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 R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T09:46:36Z.
Change
Run the existing 126-ray opacity fixture through a source-built
lib_6_3DispatchRays pipeline. The GTX 1060 can run this path at DXR Tier 1.0. Each geometry supplies its index as a local root constant in its hit group record. The any-hit shader uses that index to apply the fixture's accept mask and callsIgnoreHitfor rejected candidates.The two backends share the CPU reference for ray, instance and geometry opacity flags. The pipeline checks hit identity and distance, required and allowed any-hit geometry masks, and termination after a shader-accepted first hit. Refs #216.
Verification
Tested
87df17142490d64b9b66614311748a79e2962dc8in Debug and Release on Windows 10 22H2 build 19045.6456.Each DispatchRays run matched 94 hits and 32 misses with zero D3D12 debug warnings or errors. The focused matrix, including the neighboring DXR, BVH and capability checks, had 42 passes and 30 capability skips with zero failures.
For the negative controls, rebuilt the
lib_6_3Debug shader once with the accept-mask rejection disabled and once with the low bit of the geometry index flipped in both hit shaders. Ranoffscreen_check hardware --dxr-opacity-pipelineon the GTX 1060 andoffscreen_check warp --dxr-opacity-pipelinewith app-local WARP. Both mutations returned 1 on both adapters and first failed at ray 0. Accepting every candidate gave 41 and 42 mismatches respectively and hit geometry 0 at distance 1 instead of geometry 1 at distance 2. Flipping the index gave 96 mismatches on each adapter and reported geometry 0 at the correct distance of 2. The debug layer was clean in all four controls. These controls ran at7da31d8before the final rebase, which preserved the opacity shader and comparison code.Evidence and follow-up
The scene and CPU reference use the repository's original MIT-licensed fixture. Traversal order and candidate duplication are implementation-dependent. The check allows any committable first hit and compares candidate masks. See the DispatchRays opacity experiment for the focused reproduction command.
AI-assisted implementation and verification.
Checklist