mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 22:40:34 +01:00
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>
This commit is contained in:
parent
1ec7e51997
commit
9196fd3e1f
1 changed files with 2 additions and 2 deletions
|
|
@ -1160,8 +1160,8 @@ insert_traversal_triangle_case(struct radv_device *device,
|
|||
0)));
|
||||
|
||||
nir_push_if(b, nir_iand(b,
|
||||
nir_iand(b, nir_fge(b, nir_load_var(b, vars->tmax), dist),
|
||||
nir_fge(b, dist, nir_load_var(b, vars->tmin))),
|
||||
nir_iand(b, nir_flt(b, dist, nir_load_var(b, vars->tmax)),
|
||||
nir_flt(b, nir_load_var(b, vars->tmin), dist)),
|
||||
not_cull));
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue