mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
intel/nir: document committed argument
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13719>
This commit is contained in:
parent
b0624e414f
commit
fb69fed65b
2 changed files with 4 additions and 4 deletions
|
|
@ -151,7 +151,7 @@ brw_nir_lower_intersection_shader(nir_shader *intersection,
|
|||
|
||||
b->cursor = nir_before_cf_list(&impl->body);
|
||||
|
||||
nir_ssa_def *t_addr = brw_nir_rt_mem_hit_addr(b, false);
|
||||
nir_ssa_def *t_addr = brw_nir_rt_mem_hit_addr(b, false /* committed */);
|
||||
nir_variable *commit =
|
||||
nir_local_variable_create(impl, glsl_bool_type(), "ray_commit");
|
||||
nir_store_var(b, commit, nir_imm_false(b), 0x1);
|
||||
|
|
@ -163,7 +163,7 @@ brw_nir_lower_intersection_shader(nir_shader *intersection,
|
|||
nir_push_if(b, nir_load_var(b, commit));
|
||||
{
|
||||
/* Set the "valid" bit in mem_hit */
|
||||
nir_ssa_def *ray_addr = brw_nir_rt_mem_hit_addr(b, false);
|
||||
nir_ssa_def *ray_addr = brw_nir_rt_mem_hit_addr(b, false /* committed */);
|
||||
nir_ssa_def *flags_dw_addr = nir_iadd_imm(b, ray_addr, 12);
|
||||
nir_store_global(b, flags_dw_addr, 4,
|
||||
nir_ior(b, nir_load_global(b, flags_dw_addr, 4, 1, 32),
|
||||
|
|
|
|||
|
|
@ -344,8 +344,8 @@ brw_nir_memcpy_global(nir_builder *b,
|
|||
static inline void
|
||||
brw_nir_rt_commit_hit(nir_builder *b)
|
||||
{
|
||||
brw_nir_memcpy_global(b, brw_nir_rt_mem_hit_addr(b, true), 16,
|
||||
brw_nir_rt_mem_hit_addr(b, false), 16,
|
||||
brw_nir_memcpy_global(b, brw_nir_rt_mem_hit_addr(b, true /* committed */), 16,
|
||||
brw_nir_rt_mem_hit_addr(b, false /* committed */), 16,
|
||||
BRW_RT_SIZEOF_HIT_INFO);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue