intel/nir/rt: remove ray query mem hit writes at initialization

This will not even be read by HW.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396>
This commit is contained in:
Lionel Landwerlin
2022-07-20 17:03:22 +03:00
committed by Marge Bot
parent f843bec7de
commit 3f01071c79
2 changed files with 0 additions and 20 deletions

View File

@@ -438,24 +438,6 @@ brw_nir_rt_load_mem_hit_from_addr(nir_builder *b,
brw_nir_rt_unpack_leaf_ptr(b, nir_channels(b, data, 0x3 << 2));
}
static inline void
brw_nir_rt_init_mem_hit_at_addr(nir_builder *b,
nir_ssa_def *stack_addr,
bool committed,
nir_ssa_def *t_max)
{
nir_ssa_def *mem_hit_addr =
brw_nir_rt_mem_hit_addr_from_addr(b, stack_addr, committed);
/* Set the t_max value from the ray initialization */
nir_ssa_def *hit_t_addr = mem_hit_addr;
brw_nir_rt_store(b, hit_t_addr, 4, t_max, 0x1);
/* Clear all the flags packed behind primIndexDelta */
nir_ssa_def *state_addr = nir_iadd_imm(b, mem_hit_addr, 12);
brw_nir_rt_store(b, state_addr, 4, nir_imm_int(b, 0), 0x1);
}
static inline void
brw_nir_rt_load_mem_hit(nir_builder *b,
struct brw_nir_rt_mem_hit_defs *defs,