upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_query_sync_test.cpp
diff options
context:
space:
mode:
authorromainveurrier <romain.veurrier@gmail.com>2026-11-22 12:56:07 +0100
committerromainveurrier <romain.veurrier@gmail.com>2026-11-22 12:56:07 +0100
commitd55fa3d4d13ce5094b4557eaf35c9d311f5e783f (patch)
treea41c7a0cbe0d51aebf1b3423e0b60ea64de94021 /runtime/test/vk_queue_query_sync_test.cpp
parent854d4100f0a8c3fd10b9db1167f4c870b45b28fd (diff)
Translator: image_bvh triangle nodes read their type's vertex slots and the barycentric remap byte
image_bvh(64)_intersect_ray followed RADV's software path on triangle nodes, which always reads vertex slots 0, 1, 2 and returns (v, w): RADV builds one triangle per node. The hardware format packs up to four triangles per node, and the node type picks the slots: TRI0 (0,1,2), TRI1 (1,3,2), TRI2 (2,3,4), TRI3 (2,4,0). The type's byte of the triangle-ID word at +60 picks which two vertex weights come back (bits [1:0] and [3:2]; 0x09 is RADV's v, w). A BVH with paired leaves therefore traversed TRI1 against the wrong triangle. Both rules come from AMD GPURT (CalcTriangleCompressionVertexIndices, SwizzleBarycentrics, TRIANGLE_ID_I/J_SRC_SHIFT), and the public XDXR software path (Read3Verts, TestXboxBvh4Leaf) agrees with it. - tests/semantic/test_image_bvh_tri.py: every node type on a hand-built node, every remap selector pair, the byte per type, selector 3, a zero word - spirv_mini_interp: OpVectorExtractDynamic and GLSL.std.450 FSign, from the specifications - vk_compute_test "bvh": its hand-built triangle nodes now carry the 0x09 triangle ID a builder writes; expected words unchanged - docs/design.md Ray tracing row, docs/bvh.md 7a, translator docstring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions