Home
last modified time | relevance | path

Searched refs:src_bit_size (Results 1 – 14 of 14) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_conversion_builder.h61 unsigned src_bit_size = src->bit_size; in nir_round_float_to_float() local
62 if (dest_bit_size > src_bit_size) in nir_round_float_to_float()
65 nir_op low_conv = nir_type_conversion_op(nir_type_float | src_bit_size, in nir_round_float_to_float()
69 nir_type_float | src_bit_size, in nir_round_float_to_float()
237 unsigned src_bit_size = nir_alu_type_get_type_size(src_type); in nir_get_clamp_limits() local
239 assert(dest_bit_size != 0 && src_bit_size != 0); in nir_get_clamp_limits()
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()
260 assert(src_bit_size >= dest_bit_size); in nir_get_clamp_limits()
261 *high = nir_imm_intN_t(b, ihigh, src_bit_size); in nir_get_clamp_limits()
[all …]
Dnir_algebraic.py656 lambda first_unsized_src_bit_size, src_bit_size:
660 src, src_bit_size))
663 lambda first_unsized_src_bit_size, src_bit_size:
668 src_bit_size, val))
672 lambda src_bit_size, unused:
675 src, src_bit_size, nir_op.name, src_type_bits))
678 lambda src_bit_size, unused:
682 src, src_bit_size, nir_op.name, src_type_bits))
688 lambda val_bit_size, src_bit_size:
691 val, val_bit_size, first_unsized_src, src_bit_size))
[all …]
Dnir_opt_phi_precision.c320 unsigned src_bit_size; in find_widening_op() local
321 nir_op src_op = widening_conversion_op(instr, &src_bit_size); in find_widening_op()
333 if (*bit_size && (*bit_size != src_bit_size)) in find_widening_op()
337 *bit_size = src_bit_size; in find_widening_op()
Dnir_lower_bool_to_bitsize.c373 uint32_t src_bit_size = nir_src_bit_size(phi_src->src); in lower_phi_instr() local
375 dst_bit_size = src_bit_size; in lower_phi_instr()
376 } else if (src_bit_size != dst_bit_size) { in lower_phi_instr()
Dnir_validate.c371 unsigned src_bit_size = nir_src_bit_size(instr->src[i].src); in validate_alu_instr() local
373 validate_assert(state, src_bit_size == nir_alu_type_get_type_size(src_type)); in validate_alu_instr()
375 validate_assert(state, src_bit_size == instr_bit_size); in validate_alu_instr()
377 instr_bit_size = src_bit_size; in validate_alu_instr()
382 validate_assert(state, src_bit_size == 16 || src_bit_size == 32 || in validate_alu_instr()
383 src_bit_size == 64); in validate_alu_instr()
Dnir_builder.h467 unsigned src_bit_size = instr->src[i].src.ssa->bit_size; in nir_builder_alu_instr_finish_and_insert() local
470 assert(src_bit_size == bit_size); in nir_builder_alu_instr_finish_and_insert()
472 bit_size = src_bit_size; in nir_builder_alu_instr_finish_and_insert()
474 assert(src_bit_size == in nir_builder_alu_instr_finish_and_insert()
1128 const unsigned src_bit_size = srcs[src_idx]->bit_size; in nir_extract_bits() local
1131 rel_bit / src_bit_size); in nir_extract_bits()
1134 comp = nir_channel(b, unpacked, (rel_bit % src_bit_size) / in nir_extract_bits()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir.c205 uint32_t src_bit_size, in int_to_bool32() argument
210 struct lp_build_context *int_bld = get_int_bld(bld_base, is_unsigned, src_bit_size); in int_to_bool32()
212 if (src_bit_size == 16) in int_to_bool32()
214 else if (src_bit_size == 64) in int_to_bool32()
220 uint32_t src_bit_size, in flt_to_bool32() argument
224 struct lp_build_context *flt_bld = get_flt_bld(bld_base, src_bit_size); in flt_to_bool32()
226 if (src_bit_size == 64) in flt_to_bool32()
228 if (src_bit_size == 16) in flt_to_bool32()
235 uint32_t src_bit_size, in fcmp32() argument
239 struct lp_build_context *flt_bld = get_flt_bld(bld_base, src_bit_size); in fcmp32()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_lower_conversions.c29 unsigned src_bit_size, in get_conversion_op() argument
34 nir_alu_type src_full_type = (nir_alu_type) (src_type | src_bit_size); in get_conversion_op()
68 unsigned src_bit_size = nir_src_bit_size(alu->src[0].src); in lower_alu_instr() local
70 nir_alu_type src_full_type = (nir_alu_type) (src_type | src_bit_size); in lower_alu_instr()
90 (src_bit_size == 64 && dst_full_type == nir_type_float16)) { in lower_alu_instr()
91 nir_op op1 = get_conversion_op(src_type, src_bit_size, in lower_alu_instr()
115 if ((src_bit_size == 8 && dst_bit_size == 64) || in lower_alu_instr()
116 (src_bit_size == 64 && dst_bit_size == 8)) { in lower_alu_instr()
117 nir_op op1 = get_conversion_op(src_type, src_bit_size, dst_type, 32, in lower_alu_instr()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_alu.c258 unsigned src_bit_size, unsigned dst_bit_size) in vtn_nir_alu_op_for_spirv_opcode() argument
356 nir_alu_type src_type = convert_op_src_type(opcode) | src_bit_size; in vtn_nir_alu_op_for_spirv_opcode()
632 unsigned src_bit_size = glsl_get_bit_size(vtn_src[0]->type); in vtn_handle_alu() local
636 src_bit_size, dst_bit_size); in vtn_handle_alu()
700 unsigned src_bit_size = glsl_get_bit_size(vtn_src[0]->type); in vtn_handle_alu() local
702 nir_alu_type src_type = convert_op_src_type(opcode) | src_bit_size; in vtn_handle_alu()
756 unsigned src_bit_size = in vtn_handle_alu() local
758 if (src_bit_size == 0) in vtn_handle_alu()
760 if (src_bit_size != src[i]->bit_size) { in vtn_handle_alu()
761 assert(src_bit_size == 32); in vtn_handle_alu()
[all …]
Dvtn_private.h956 unsigned src_bit_size, unsigned dst_bit_size);
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir.c74 load_comps_to_vec32(nir_builder *b, unsigned src_bit_size, in load_comps_to_vec32() argument
77 unsigned num_vec32comps = DIV_ROUND_UP(num_src_comps * src_bit_size, 32); in load_comps_to_vec32()
78 unsigned step = DIV_ROUND_UP(src_bit_size, 32); in load_comps_to_vec32()
79 unsigned comps_per32b = 32 / src_bit_size; in load_comps_to_vec32()
83 switch (src_bit_size) { in load_comps_to_vec32()
98 nir_imm_int(b, j * src_bit_size)); in load_comps_to_vec32()
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dnir_to_tgsi.c2489 int src_bit_size = nir_src_bit_size(alu->src[0].src); in ntt_should_vectorize_instr() local
2492 if (src_bit_size == 64 || dst_bit_size == 64) { in ntt_should_vectorize_instr()
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_compile.c279 int src_bit_size = nir_src_bit_size(alu->src[0].src); in midgard_vectorize_filter() local
282 if (src_bit_size == 64 || dst_bit_size == 64) { in midgard_vectorize_filter()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_meta_copy.c3307 const uint32_t src_bit_size = in get_color_blit_fs() local
3316 if (dst_bit_size >= src_bit_size) in get_color_blit_fs()