radv: Fix the t comparison for triangles
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Sat, 18 Jun 2022 10:22:01 +0000 (12:22 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 29 Jun 2022 00:33:26 +0000 (00:33 +0000)
commit9196fd3e1f551328f2d47a18471aa4fcbffee683
treee0ef97a6d529d2f89b8652f207e1059d9259e5e3
parent1ec7e51997a23d9574035cf07927abe0b605335a
radv: Fix the t comparison for triangles

The accept range is defined like this:
Triangles: tmin < t < tmax
AABBs: tmin <= t <= tmax

(See https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#ray-intersection-candidate-determination)

Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17123>
src/amd/vulkan/radv_pipeline_rt.c