/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 | 134 nir_ssa_def *s = nir_imm_intN_t(b, masks, x->bit_size); in nir_copysign() 135 nir_ssa_def *v = nir_imm_intN_t(b, maskv, x->bit_size); in nir_copysign() 224 s = nir_iand(b, s, nir_imm_intN_t(b, mask, s->bit_size)); in nir_select() 239 val = nir_isub(b, nir_imm_intN_t(b, a->bit_size - 1, 32), nir_ufind_msb(b, a)); in nir_clz_u() 246 nir_ssa_def *cond = nir_ieq(b, a, nir_imm_intN_t(b, 0, a->bit_size)); in nir_ctz_u() 249 nir_imm_intN_t(b, a->bit_size, a->bit_size), in nir_ctz_u()
|
D | nir_lower_frexp.c | 51 sign_mantissa_mask = nir_imm_intN_t(b, 0x83ffu, 16); in lower_frexp_sig() 53 exponent_value = nir_imm_intN_t(b, 0x3800u, 16); in lower_frexp_sig() 118 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() 152 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_builder.h | 387 nir_imm_intN_t(nir_builder *build, uint64_t x, unsigned bit_size) in nir_imm_intN_t() function 396 return nir_imm_intN_t(build, x, 32); in nir_imm_int() 402 return nir_imm_intN_t(build, x, 64); in nir_imm_int64() 706 return nir_bcsel(b, nir_ilt(b, idx, nir_imm_intN_t(b, mid, idx->bit_size)), in _nir_select_from_array_helper() 831 return nir_iadd(build, x, nir_imm_intN_t(build, y, x->bit_size)); in nir_iadd_imm() 855 return nir_ieq(build, x, nir_imm_intN_t(build, y, x->bit_size)); in nir_ieq_imm() 862 return nir_isub(build, nir_imm_intN_t(build, y, x->bit_size), x); in nir_isub_imm() 872 return nir_imm_intN_t(build, 0, x->bit_size); in _nir_mul_imm() 879 return nir_amul(build, x, nir_imm_intN_t(build, y, x->bit_size)); in _nir_mul_imm() 881 return nir_imul(build, x, nir_imm_intN_t(build, y, x->bit_size)); in _nir_mul_imm() [all …]
|
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 | 325 nir_ishl(b, nir_imm_intN_t(b, val, options->ballot_bit_size), shift); in build_ballot_imm_ishl() 356 nir_imm_intN_t(b, val >> 63, result->bit_size), in build_ballot_imm_ishl() 358 nir_imm_intN_t(b, 0, result->bit_size)); in build_ballot_imm_ishl() 401 nir_ushr(b, nir_imm_intN_t(b, ~0ull, options->ballot_bit_size), in build_subgroup_mask() 434 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_opt_load_store_vectorize.c | 698 nir_ssa_def *index = nir_imm_intN_t(b, nir_src_as_int(deref->arr.index) - offset / stride, in subtract_deref() 716 b, deref, nir_imm_intN_t(b, -offset, deref->dest.ssa.bit_size)); in subtract_deref()
|
D | nir_lower_io.c | 858 nir_imm_intN_t(b, offset, in build_addr_iadd_imm() 915 return nir_imm_intN_t(b, var->data.driver_location | 2ull << 62, 64); in build_addr_for_var() 919 return nir_imm_intN_t(b, var->data.driver_location | 1ull << 62, 64); in build_addr_for_var()
|
D | nir_search.c | 548 cval = nir_imm_intN_t(build, c->data.i, bit_size); in construct_value()
|
D | nir_deref.c | 334 nir_ssa_def *offset = nir_imm_intN_t(b, 0, deref->dest.ssa.bit_size); in nir_build_deref_offset()
|
/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/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 | spirv_to_nir.c | 3114 src[0] = nir_src_for_ssa(nir_imm_intN_t(&b->nb, 1, bit_size)); in fill_common_atomic_sources() 3118 src[0] = nir_src_for_ssa(nir_imm_intN_t(&b->nb, -1, bit_size)); in fill_common_atomic_sources() 3713 atomic->src[1] = nir_src_for_ssa(nir_imm_intN_t(&b->nb, 0, 32)); in vtn_handle_atomics() 3716 atomic->src[1] = nir_src_for_ssa(nir_imm_intN_t(&b->nb, 0, 32)); in vtn_handle_atomics() 3717 atomic->src[2] = nir_src_for_ssa(nir_imm_intN_t(&b->nb, -1, 32)); in vtn_handle_atomics() 5408 def = nir_idiv(&b->nb, def, nir_imm_intN_t(&b->nb, elem_size, def->bit_size)); in vtn_handle_ptr()
|
D | vtn_variables.c | 205 return nir_imm_intN_t(&b->nb, link.id * stride, bit_size); in vtn_access_link_as_ssa() 2196 comps[i] = nir_imm_intN_t(b, 0, val->bit_size); in nir_shrink_zero_pad_vec()
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_indirect_dispatch.c | 179 nir_ssa_def *ntype = nir_imm_intN_t(&b, (MALI_JOB_TYPE_NULL << 1) | 1, 8); in GENX()
|
/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 | 586 …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() 615 …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()
|
/third_party/mesa3d/src/gallium/frontends/clover/nir/ |
D | invocation.cpp | 137 nir_imm_intN_t(&b, deref->var->data.driver_location, in clover_nir_lower_images()
|
/third_party/mesa3d/src/amd/common/ |
D | ac_nir_lower_ngg.c | 1172 …nir_build_store_shared(b, nir_imm_intN_t(b, 0xff, 8), vtx_addr[vtx], .base = lds_es_vertex_accepte… in add_deferred_attribute_culling() 1187 nir_ssa_def *accepted_bool = nir_ine(b, accepted, nir_imm_intN_t(b, 0, 8)); in add_deferred_attribute_culling()
|