/third_party/mesa3d/src/intel/compiler/ |
D | brw_nir_lower_conversions.c | 31 unsigned dst_bit_size, in get_conversion_op() argument 35 nir_alu_type dst_full_type = (nir_alu_type) (dst_type | dst_bit_size); in get_conversion_op() 72 unsigned dst_bit_size = nir_dest_bit_size(alu->dest.dest); in lower_alu_instr() local 89 if ((src_full_type == nir_type_float16 && dst_bit_size == 64) || in lower_alu_instr() 95 dst_type, dst_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() 119 nir_op op2 = get_conversion_op(dst_type, 32, dst_type, dst_bit_size, in lower_alu_instr()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_bit_size.c | 52 unsigned dst_bit_size = alu->dest.dest.ssa.bit_size; in lower_alu_instr() local 66 assert(util_is_power_of_two_nonzero(dst_bit_size)); in lower_alu_instr() 67 src = nir_iand(bld, src, nir_imm_int(bld, dst_bit_size - 1)); in lower_alu_instr() 76 assert(dst_bit_size * 2 <= bit_size); in lower_alu_instr() 79 lowered_dst = nir_ushr_imm(bld, lowered_dst, dst_bit_size); in lower_alu_instr() 81 lowered_dst = nir_ishr_imm(bld, lowered_dst, dst_bit_size); in lower_alu_instr() 89 const int64_t int_max = u_intN_max(dst_bit_size); in lower_alu_instr() 90 const int64_t int_min = u_intN_min(dst_bit_size); in lower_alu_instr() 96 const uint64_t uint_max = u_uintN_max(dst_bit_size); in lower_alu_instr() 106 dst_bit_size != bit_size) { in lower_alu_instr() [all …]
|
D | nir_lower_bool_to_bitsize.c | 46 get_bool_convert_opcode(uint32_t dst_bit_size) in get_bool_convert_opcode() argument 48 switch (dst_bit_size) { in get_bool_convert_opcode() 371 uint32_t dst_bit_size = 0; in lower_phi_instr() local 374 if (dst_bit_size == 0) { in lower_phi_instr() 375 dst_bit_size = src_bit_size; in lower_phi_instr() 376 } else if (src_bit_size != dst_bit_size) { in lower_phi_instr() 379 nir_op convert_op = get_bool_convert_opcode(dst_bit_size); in lower_phi_instr() 387 phi->dest.ssa.bit_size = dst_bit_size; in lower_phi_instr()
|
D | nir_opcodes.py | 240 for dst_bit_size in type_sizes(dst_t): 241 if dst_bit_size == 16 and dst_t == tfloat and src_t == tfloat: 265 dst_bit_size, 267 dst_t + str(dst_bit_size), 269 elif dst_bit_size == 32 and dst_t == tfloat and src_t == tfloat: 278 dst_bit_size), 279 dst_t + str(dst_bit_size), src_t, conv_expr) 283 dst_bit_size), 284 dst_t + str(dst_bit_size), src_t, conv_expr)
|
D | nir_search.c | 475 unsigned dst_bit_size = replace_bitsize(value, search_bitsize, state); in construct_value() local 476 nir_op op = nir_op_for_search_op(expr->opcode, dst_bit_size); in construct_value() 483 dst_bit_size, NULL); in construct_value()
|
D | nir_algebraic.py | 701 lambda dst_bit_size, unused: 704 val, dst_bit_size, nir_op.name, dst_type_bits))
|
D | nir_builder.h | 1689 nir_mask(nir_builder *b, nir_ssa_def *bits, unsigned dst_bit_size) in nir_mask() argument 1691 return nir_ushr(b, nir_imm_intN_t(b, -1, dst_bit_size), in nir_mask() 1692 nir_isub_imm(b, dst_bit_size, nir_u2u32(b, bits))); in nir_mask()
|
/third_party/mesa3d/src/compiler/spirv/ |
D | vtn_alu.c | 258 unsigned src_bit_size, unsigned dst_bit_size) in vtn_nir_alu_op_for_spirv_opcode() argument 357 nir_alu_type dst_type = convert_op_dst_type(opcode) | dst_bit_size; in vtn_nir_alu_op_for_spirv_opcode() 633 unsigned dst_bit_size = glsl_get_bit_size(dest_type); in vtn_handle_alu() local 636 src_bit_size, dst_bit_size); in vtn_handle_alu() 701 unsigned dst_bit_size = glsl_get_bit_size(dest_type); in vtn_handle_alu() local 703 nir_alu_type dst_type = convert_op_dst_type(opcode) | dst_bit_size; in vtn_handle_alu() 720 dest->def = nir_convert_alu_types(&b->nb, dst_bit_size, src[0], in vtn_handle_alu() 745 unsigned dst_bit_size = glsl_get_bit_size(dest_type); in vtn_handle_alu() local 747 src0_bit_size, dst_bit_size); in vtn_handle_alu() 805 unsigned dst_bit_size = glsl_get_bit_size(dest_type); in vtn_handle_alu() local [all …]
|
D | vtn_private.h | 956 unsigned src_bit_size, unsigned dst_bit_size);
|
/third_party/mesa3d/src/microsoft/compiler/ |
D | dxil_nir.c | 41 unsigned dst_bit_size, in extract_comps_from_vec32() argument 45 unsigned step = DIV_ROUND_UP(dst_bit_size, 32); in extract_comps_from_vec32() 46 unsigned comps_per32b = 32 / dst_bit_size; in extract_comps_from_vec32() 50 switch (dst_bit_size) { in extract_comps_from_vec32() 63 tmp = nir_unpack_bits(b, nir_channel(b, vec32, i), dst_bit_size); in extract_comps_from_vec32()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_meta_copy.c | 3311 const uint32_t dst_bit_size = in get_color_blit_fs() local 3316 if (dst_bit_size >= src_bit_size) in get_color_blit_fs() 3319 assert(dst_bit_size > 0); in get_color_blit_fs() 3321 nir_ssa_def *max = nir_imm_int(&b, (1 << dst_bit_size) - 1); in get_color_blit_fs() 3324 nir_ssa_def *max = nir_imm_int(&b, (1 << (dst_bit_size - 1)) - 1); in get_color_blit_fs() 3325 nir_ssa_def *min = nir_imm_int(&b, -(1 << (dst_bit_size - 1))); in get_color_blit_fs()
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_to_tgsi.c | 2490 int dst_bit_size = nir_dest_bit_size(alu->dest.dest); 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/ |
D | midgard_compile.c | 280 int dst_bit_size = nir_dest_bit_size(alu->dest.dest); in midgard_vectorize_filter() local 282 if (src_bit_size == 64 || dst_bit_size == 64) { in midgard_vectorize_filter()
|