diff options
| author | controldebils <232935122+controldebils@users.noreply.github.com> | 2026-11-22 21:54:38 +0100 |
|---|---|---|
| committer | controldebils <232935122+controldebils@users.noreply.github.com> | 2026-11-22 21:54:38 +0100 |
| commit | dc6068cc68f45d425a1219e48a251f1be2252c04 (patch) | |
| tree | 1fc26b72ceb1e81cadf67a43d29486c1044ca5cf /runtime/src/pe_loader.cpp | |
| parent | fade4e4b98be5559bc72912c010081c3a9d6bc48 (diff) | |
rdna2spirv: BVH box test as measured on RDNA2: NaN planes skipped, near/far by direction sign (SHADER-650)
Native image_bvh_intersect_ray on an RX 6900 XT (gfx1030, tools/hw_oracle, 338 cases) picks each axis's near
and far plane by the sign of the inverse direction, takes the inverse direction as given (0 x inf is NaN),
reduces the three near and the three far t with NaN skipped (all-NaN is a miss), and sorts by max(tnear, 0)
through the network (0,2) (1,3) (0,1) (2,3) (1,2). A lone NaN bound leaves its plane open and an empty box
misses without a separate check, so #3373's empty-box test is folded into this rule.
The translator now matches all 338 measured cases (main 43). cs_bvh/cs_bvh32 and vk_compute_test expect the
scene's NaN box at t = 0, as native gfx1030 returns. tests/semantic/test_image_bvh_box_hw.py holds 241 of the
measured cases. docs/design.md Ray tracing row updated; the descriptor base is measured too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions