summaryrefslogtreecommitdiff
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@collabora.com>2022-11-29 12:54:21 -0600
committerMarge Bot <emma+marge@anholt.net>2022-12-01 01:10:12 +0000
commitd9a24632d3c5c50b4010908fa3474937867476bd (patch)
tree20b5db320fd0be7e5366a6a79d47084f06a42f3f /src/intel
parentccf19e09568ae84e2da5fe90b30531e550806d36 (diff)
nir/builder: Drop nir_i2i and nir_u2u in favor of nir_x2xN
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20067>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/compiler/brw_kernel.c2
-rw-r--r--src/intel/compiler/brw_nir_rt.c2
2 files changed, 2 insertions, 2 deletions
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));