/third_party/mesa3d/src/compiler/nir/ |
D | nir_opt_idiv_const.c | 33 return nir_imm_intN_t(b, 0, n->bit_size); in build_udiv() 43 n = nir_uadd_sat(b, n, nir_imm_intN_t(b, m.increment, n->bit_size)); in build_udiv() 44 n = nir_umul_high(b, n, nir_imm_intN_t(b, m.multiplier, n->bit_size)); in build_udiv() 56 return nir_imm_intN_t(b, 0, n->bit_size); in build_umod() 58 return nir_iand(b, n, nir_imm_intN_t(b, d - 1, n->bit_size)); in build_umod() 61 nir_imm_intN_t(b, d, n->bit_size))); in build_umod() 75 return nir_imm_intN_t(b, 0, n->bit_size); in build_idiv() 82 nir_ssa_def *n_neg = nir_ilt(b, n, nir_imm_intN_t(b, 0, n->bit_size)); in build_idiv() 90 nir_imul_high(b, n, nir_imm_intN_t(b, m.multiplier, n->bit_size)); in build_idiv() 108 return nir_imm_intN_t(b, 0, n->bit_size); in build_irem() [all …]
|
D | nir_conversion_builder.h | 141 nir_imm_intN_t(b, (1ull << (src->bit_size - 1)) - 1, src->bit_size); in nir_round_int_to_float() 167 nir_ssa_def *one = nir_imm_intN_t(b, 1, src->bit_size); in nir_round_int_to_float() 257 *low = nir_imm_intN_t(b, ilow, src_bit_size); in nir_get_clamp_limits() 258 *high = nir_imm_intN_t(b, ihigh, src_bit_size); in nir_get_clamp_limits() 261 *high = nir_imm_intN_t(b, ihigh, src_bit_size); in nir_get_clamp_limits() 272 *low = nir_imm_intN_t(b, 0, src_bit_size); in nir_get_clamp_limits() 274 *high = nir_imm_intN_t(b, uhigh, src_bit_size); in nir_get_clamp_limits() 311 *low = nir_imm_intN_t(b, flow, src_bit_size); in nir_get_clamp_limits() 313 *high = nir_imm_intN_t(b, fhigh, src_bit_size); in nir_get_clamp_limits() 320 *high = nir_imm_intN_t(b, fhigh, src_bit_size); in nir_get_clamp_limits()
|
D | nir_builtin_builder.h | 135 nir_ssa_def *s = nir_imm_intN_t(b, masks, x->bit_size); in nir_copysign() 136 nir_ssa_def *v = nir_imm_intN_t(b, maskv, x->bit_size); in nir_copysign() 225 s = nir_iand(b, s, nir_imm_intN_t(b, mask, s->bit_size)); in nir_select() 240 val = nir_isub(b, nir_imm_intN_t(b, a->bit_size - 1, 32), nir_ufind_msb(b, a)); in nir_clz_u() 247 nir_ssa_def *cond = nir_ieq(b, a, nir_imm_intN_t(b, 0, a->bit_size)); in nir_ctz_u() 250 nir_imm_intN_t(b, a->bit_size, a->bit_size), in nir_ctz_u()
|
D | nir_builder.h | 299 nir_imm_intN_t(nir_builder *build, uint64_t x, unsigned bit_size) in nir_imm_intN_t() function 308 return nir_imm_intN_t(build, x, 32); in nir_imm_int() 314 return nir_imm_intN_t(build, x, 64); in nir_imm_int64() 519 return nir_bcsel(b, nir_ilt(b, idx, nir_imm_intN_t(b, mid, idx->bit_size)), in _nir_select_from_array_helper() 644 return nir_iadd(build, x, nir_imm_intN_t(build, y, x->bit_size)); in nir_iadd_imm() 668 return nir_ieq(build, x, nir_imm_intN_t(build, y, x->bit_size)); in nir_ieq_imm() 674 return nir_ine(build, x, nir_imm_intN_t(build, y, x->bit_size)); in nir_ine_imm() 681 return nir_isub(build, nir_imm_intN_t(build, y, x->bit_size), x); in nir_isub_imm() 691 return nir_imm_intN_t(build, 0, x->bit_size); in _nir_mul_imm() 698 return nir_amul(build, x, nir_imm_intN_t(build, y, x->bit_size)); in _nir_mul_imm() [all …]
|
D | nir_lower_frexp.c | 50 sign_mantissa_mask = nir_imm_intN_t(b, 0x83ffu, 16); in lower_frexp_sig() 52 exponent_value = nir_imm_intN_t(b, 0x3800u, 16); in lower_frexp_sig() 130 nir_ssa_def *exponent_bias = nir_imm_intN_t(b, -14, 16); in lower_frexp_exp()
|
D | nir_lower_bit_size.c | 93 nir_imm_intN_t(bld, int_min, bit_size), in lower_alu_instr() 94 nir_imm_intN_t(bld, int_max, bit_size)); in lower_alu_instr() 99 nir_imm_intN_t(bld, uint_max, bit_size)); in lower_alu_instr() 178 res = nir_imin(b, res, nir_imm_intN_t(b, int_max, bit_size)); in lower_intrinsic_instr() 183 res = nir_imax(b, res, nir_imm_intN_t(b, int_min, bit_size)); in lower_intrinsic_instr()
|
D | nir_lower_memcpy.c | 64 nir_ssa_def *idx = nir_imm_intN_t(b, index, parent->dest.ssa.bit_size); in memcpy_load_deref_elem_imm() 84 nir_ssa_def *idx = nir_imm_intN_t(b, index, parent->dest.ssa.bit_size); in memcpy_store_deref_elem_imm() 155 nir_store_var(&b, i, nir_imm_intN_t(&b, 0, size->bit_size), ~0); in lower_memcpy_impl()
|
D | nir_lower_alu.c | 150 nir_ssa_def *c1 = nir_imm_intN_t(b, 1, src0->bit_size); in lower_alu_instr() 152 … nir_ssa_def *cmask = nir_imm_intN_t(b, (1ull << (src0->bit_size / 2)) - 1, src0->bit_size); in lower_alu_instr() 155 nir_ssa_def *c0 = nir_imm_intN_t(b, 0, src0->bit_size); in lower_alu_instr() 205 nir_imm_intN_t(b, 1, src0->bit_size))), in lower_alu_instr()
|
D | nir_builtin_builder.c | 51 nir_imm_intN_t(b, 0, cross->bit_size)); in nir_cross4() 63 nir_ssa_def *zero = nir_imm_intN_t(b, 0, x->bit_size); in nir_nextafter() 64 nir_ssa_def *one = nir_imm_intN_t(b, 1, x->bit_size); in nir_nextafter() 94 nir_imm_intN_t(b, sign_mask | min_abs, x->bit_size), in nir_nextafter() 99 nir_imm_intN_t(b, min_abs, x->bit_size), in nir_nextafter()
|
D | nir_lower_subgroups.c | 404 nir_ishl(b, nir_imm_intN_t(b, val, options->ballot_bit_size), shift); in build_ballot_imm_ishl() 435 nir_imm_intN_t(b, val >> 63, result->bit_size), in build_ballot_imm_ishl() 437 nir_imm_intN_t(b, 0, result->bit_size)); in build_ballot_imm_ishl() 480 nir_ushr(b, nir_imm_intN_t(b, ~0ull, options->ballot_bit_size), in build_subgroup_mask() 513 result_extended, nir_imm_intN_t(b, 0, options->ballot_bit_size)); in build_subgroup_mask()
|
D | nir_lower_wrmasks.c | 152 nir_imm_intN_t(b, offset_adj, offset->bit_size)); in split_wrmask()
|
D | nir_lower_indirect_derefs.c | 54 …nir_push_if(b, nir_ilt(b, deref->arr.index.ssa, nir_imm_intN_t(b, mid, parent->dest.ssa.bit_size))… in emit_indirect_load_store_deref()
|
D | nir_lower_locals_to_regs.c | 207 … mov->src[0].src = nir_src_for_ssa(nir_imm_intN_t(b, 0, mov->src[0].src.reg.reg->bit_size)); in lower_locals_to_regs_block()
|
D | nir_split_64bit_vec3_and_vec4.c | 111 nir_ssa_def *offset = nir_imm_intN_t(b, 0, deref->dest.ssa.bit_size); in get_linear_array_offset()
|
D | nir_lower_mediump.c | 570 constant = nir_imm_intN_t(b, nir_ssa_scalar_as_uint(comp), 16); in fold_16bit_src()
|
/third_party/mesa3d/src/compiler/nir/tests/ |
D | builder_tests.cpp | 136 nir_imm_intN_t(b, 0x04, 8), in TEST_F() 137 nir_imm_intN_t(b, 0x08070605, 32), in TEST_F() 138 nir_vec2(b, nir_imm_intN_t(b, 0x0a09, 16), in TEST_F() 139 nir_imm_intN_t(b, 0x0c0b, 16)), in TEST_F()
|
/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_nir_lower_wide_load_store.c | 77 nir_imm_intN_t(b, (c * val->bit_size) / 8, addr->bit_size), in lower_wide_load_store() 100 nir_imm_intN_t(b, (c * bit_size) / 8, addr->bit_size), in lower_wide_load_store()
|
D | ir3_nir_lower_64b.c | 101 off = nir_iadd(b, off, nir_imm_intN_t(b, 8, off->bit_size)); in lower_64b_intrinsics() 154 off = nir_iadd(b, off, nir_imm_intN_t(b, 8, off->bit_size)); in lower_64b_intrinsics()
|
/third_party/mesa3d/src/compiler/spirv/ |
D | vtn_opencl.c | 827 nir_imm_intN_t(&b->nb, idx, field_src->bit_size), in handle_printf() 867 mask = nir_iand(&b->nb, mask, nir_imm_intN_t(&b->nb, in_elems - 1, mask->bit_size)); in handle_shuffle() 890 mask = nir_iand(&b->nb, mask, nir_imm_intN_t(&b->nb, total_mask, mask->bit_size)); in handle_shuffle2() 893 …nir_ssa_def *vmask = nir_iand(&b->nb, this_mask, nir_imm_intN_t(&b->nb, half_mask, mask->bit_size)… in handle_shuffle2() 896 … nir_ssa_def *sel = nir_ilt(&b->nb, this_mask, nir_imm_intN_t(&b->nb, in_elems, mask->bit_size)); in handle_shuffle2()
|
D | vtn_glsl450.c | 348 nir_imm_intN_t(&b->nb, (uint64_t)1 << (src[0]->bit_size - 1), in handle_glsl450_alu() 373 nir_imm_intN_t(&b->nb, (uint64_t)1 << (src[0]->bit_size - 1), in handle_glsl450_alu()
|
/third_party/mesa3d/src/broadcom/compiler/ |
D | v3d_nir_lower_load_store_bitsize.c | 106 nir_imm_intN_t(b, offset_adj, in init_scalar_intrinsic()
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_indirect_dispatch.c | 106 nir_ssa_def *ntype = nir_imm_intN_t(&b, (MALI_JOB_TYPE_NULL << 1) | 1, 8); in GENX()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_lower_image_casts.c | 175 nir_imm_intN_t(b, i == 3 ? 1 : 0, to_desc->channel[0].size); in convert_value()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_nir_rt.c | 44 idx = nir_imm_intN_t(b, nir_src_as_int(deref->arr.index), bit_size); in resize_deref()
|
/third_party/mesa3d/src/microsoft/clc/ |
D | clc_compiler.c | 582 …nir_deref_instr *elem = nir_build_deref_ptr_as_array(b, cast, nir_imm_intN_t(b, i, cast->dest.ssa.… in split_unaligned_load() 611 …nir_deref_instr *elem = nir_build_deref_ptr_as_array(b, cast, nir_imm_intN_t(b, i, cast->dest.ssa.… in split_unaligned_store()
|