From d9a24632d3c5c50b4010908fa3474937867476bd Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 29 Nov 2022 12:54:21 -0600 Subject: nir/builder: Drop nir_i2i and nir_u2u in favor of nir_x2xN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Alyssa Rosenzweig Reviewed-by: Emma Anholt Reviewed-by: Timur Kristóf Part-of: --- src/intel/compiler/brw_kernel.c | 2 +- src/intel/compiler/brw_nir_rt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/intel') diff --git a/src/intel/compiler/brw_kernel.c b/src/intel/compiler/brw_kernel.c index fd5f4e62180..59450a7b3cc 100644 --- a/src/intel/compiler/brw_kernel.c +++ b/src/intel/compiler/brw_kernel.c @@ -226,7 +226,7 @@ lower_kernel_intrinsics(nir_shader *nir) /* We may need to do a bit-size cast here */ nir_ssa_def *num_work_groups = - nir_u2u(&b, &load->dest.ssa, intrin->dest.ssa.bit_size); + nir_u2uN(&b, &load->dest.ssa, intrin->dest.ssa.bit_size); nir_ssa_def_rewrite_uses(&intrin->dest.ssa, num_work_groups); progress = true; diff --git a/src/intel/compiler/brw_nir_rt.c b/src/intel/compiler/brw_nir_rt.c index b124928b293..87c89a5c71b 100644 --- a/src/intel/compiler/brw_nir_rt.c +++ b/src/intel/compiler/brw_nir_rt.c @@ -43,7 +43,7 @@ resize_deref(nir_builder *b, nir_deref_instr *deref, if (nir_src_is_const(deref->arr.index)) { idx = nir_imm_intN_t(b, nir_src_as_int(deref->arr.index), bit_size); } else { - idx = nir_i2i(b, deref->arr.index.ssa, bit_size); + idx = nir_i2iN(b, deref->arr.index.ssa, bit_size); } nir_instr_rewrite_src(&deref->instr, &deref->arr.index, nir_src_for_ssa(idx)); -- cgit v1.2.3