intel/nir/rt: fixup primitive id
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 27 Oct 2022 13:56:38 +0000 (16:56 +0300)
committerEric Engestrom <eric@engestrom.ch>
Wed, 14 Dec 2022 20:47:02 +0000 (20:47 +0000)
commitbf1d05b8e4b5c1a9db9a134cca26c9cd93e1435a
tree467eec9d591a0c357f3bfd28497e1cbcd6f3eaa5
parent5e0dfcb9c712a468b11b5dcad77aa878c8445ddc
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>
(cherry picked from commit 610639682533783796fe32bdcb2b4d3375fae56f)
.pick_status.json
src/intel/compiler/brw_nir_lower_rt_intrinsics.c
src/intel/compiler/brw_nir_rt_builder.h