intel: Use nir_ instead of nir_build_ helpers

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23858>
This commit is contained in:
Konstantin Seurer
2023-06-26 14:16:51 +02:00
committed by Marge Bot
parent afd81d5ace
commit 8f3db26d14
3 changed files with 5 additions and 5 deletions

View File

@@ -63,13 +63,13 @@ static inline nir_ssa_def *
brw_nir_rt_load_const(nir_builder *b, unsigned components,
nir_ssa_def *addr, nir_ssa_def *pred)
{
return nir_build_load_global_const_block_intel(b, components, addr, pred);
return nir_load_global_const_block_intel(b, components, addr, pred);
}
static inline nir_ssa_def *
brw_load_btd_dss_id(nir_builder *b)
{
return nir_build_load_topology_id_intel(b, .base = BRW_TOPOLOGY_ID_DSS);
return nir_load_topology_id_intel(b, .base = BRW_TOPOLOGY_ID_DSS);
}
static inline nir_ssa_def *
@@ -84,7 +84,7 @@ brw_nir_rt_load_num_simd_lanes_per_dss(nir_builder *b,
static inline nir_ssa_def *
brw_load_eu_thread_simd(nir_builder *b)
{
return nir_build_load_topology_id_intel(b, .base = BRW_TOPOLOGY_ID_EU_THREAD_SIMD);
return nir_load_topology_id_intel(b, .base = BRW_TOPOLOGY_ID_EU_THREAD_SIMD);
}
static inline nir_ssa_def *

View File

@@ -162,7 +162,7 @@ anv_mesh_convert_attrs_prim_to_vert(struct nir_shader *nir,
nir_ssa_def *zero = nir_imm_int(&b, 0);
nir_ssa_def *local_invocation_index = nir_build_load_local_invocation_index(&b);
nir_ssa_def *local_invocation_index = nir_load_local_invocation_index(&b);
nir_ssa_def *cmp = nir_ieq(&b, local_invocation_index, zero);
nir_if *if_stmt = nir_push_if(&b, cmp);

View File

@@ -62,7 +62,7 @@ anv_nir_prim_count_store(nir_builder *b, nir_ssa_def *val)
primitive_count->data.location = VARYING_SLOT_PRIMITIVE_COUNT;
primitive_count->data.interpolation = INTERP_MODE_NONE;
nir_ssa_def *local_invocation_index = nir_build_load_local_invocation_index(b);
nir_ssa_def *local_invocation_index = nir_load_local_invocation_index(b);
nir_ssa_def *cmp = nir_ieq_imm(b, local_invocation_index, 0);
nir_if *if_stmt = nir_push_if(b, cmp);