intel/nir/rt: fixup primitive id
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 27 Oct 2022 13:56:38 +0000 (16:56 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 12 Dec 2022 08:16:21 +0000 (10:16 +0200)
commit610639682533783796fe32bdcb2b4d3375fae56f
tree05bc45c2c463413eca471ff8977a7530106acce7
parent13f39da71a69026445fc5455d749858aa7ad94dc
intel/nir/rt: fixup primitive id

There is a delta index value in the hit structure, we forgot to add it
to the base value.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 046571479028 ("intel/nir/rt: add more helpers for ray queries")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7565
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19346>
src/intel/compiler/brw_nir_lower_rt_intrinsics.c
src/intel/compiler/brw_nir_rt_builder.h