/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_conv.c | 395 struct lp_type dst_type, in lp_build_unsigned_norm_to_float() argument 399 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, dst_type); in lp_build_unsigned_norm_to_float() 400 LLVMTypeRef int_vec_type = lp_build_int_vec_type(gallivm, dst_type); in lp_build_unsigned_norm_to_float() 410 assert(dst_type.floating); in lp_build_unsigned_norm_to_float() 412 mantissa = lp_mantissa(dst_type); in lp_build_unsigned_norm_to_float() 424 lp_build_const_vec(gallivm, dst_type, scale), ""); in lp_build_unsigned_norm_to_float() 445 lp_build_const_int_vec(gallivm, dst_type, shift), ""); in lp_build_unsigned_norm_to_float() 448 bias_ = lp_build_const_vec(gallivm, dst_type, bias); in lp_build_unsigned_norm_to_float() 457 res = LLVMBuildFMul(builder, res, lp_build_const_vec(gallivm, dst_type, scale), ""); in lp_build_unsigned_norm_to_float() 471 struct lp_type* dst_type, in lp_build_conv_auto() argument [all …]
|
D | lp_bld_pack.c | 409 struct lp_type dst_type, in lp_build_unpack2() argument 419 assert(!dst_type.floating); in lp_build_unpack2() 420 assert(dst_type.width == src_type.width * 2); in lp_build_unpack2() 421 assert(dst_type.length * 2 == src_type.length); in lp_build_unpack2() 423 if(dst_type.sign && src_type.sign) { in lp_build_unpack2() 443 dst_vec_type = lp_build_vec_type(gallivm, dst_type); in lp_build_unpack2() 462 struct lp_type dst_type, in lp_build_unpack2_native() argument 472 assert(!dst_type.floating); in lp_build_unpack2_native() 473 assert(dst_type.width == src_type.width * 2); in lp_build_unpack2_native() 474 assert(dst_type.length * 2 == src_type.length); in lp_build_unpack2_native() [all …]
|
D | lp_bld_gather.c | 168 struct lp_type dst_type, in lp_build_gather_elem_vec() argument 220 assert(src_width <= dst_type.width * dst_type.length); in lp_build_gather_elem_vec() 221 if (src_width < dst_type.width * dst_type.length) { in lp_build_gather_elem_vec() 222 if (dst_type.length > 1) { in lp_build_gather_elem_vec() 223 res = lp_build_pad_vector(gallivm, res, dst_type.length); in lp_build_gather_elem_vec() 229 LLVMTypeRef dst_elem_type = lp_build_vec_type(gallivm, dst_type); in lp_build_gather_elem_vec() 240 dst_type.width - src_width, 0), ""); in lp_build_gather_elem_vec() 281 struct lp_type dst_type, in lp_build_gather_avx2() argument 288 struct lp_type res_type = dst_type; in lp_build_gather_avx2() 291 if (dst_type.floating) { in lp_build_gather_avx2() [all …]
|
D | lp_bld_format_aos_array.c | 55 struct lp_type dst_type, in lp_build_fetch_rgba_aos_array() argument 69 assert(src_type.length <= dst_type.length); in lp_build_fetch_rgba_aos_array() 96 if (src_type.length < dst_type.length) { in lp_build_fetch_rgba_aos_array() 97 res = lp_build_pad_vector(gallivm, res, dst_type.length); in lp_build_fetch_rgba_aos_array() 98 src_type.length = dst_type.length; in lp_build_fetch_rgba_aos_array() 101 tmp_type = dst_type; in lp_build_fetch_rgba_aos_array() 116 if (pure_integer && dst_type.floating) { in lp_build_fetch_rgba_aos_array() 117 res = LLVMBuildBitCast(builder, res, lp_build_vec_type(gallivm, dst_type), ""); in lp_build_fetch_rgba_aos_array()
|
D | lp_bld_pack.h | 70 struct lp_type dst_type, 79 struct lp_type dst_type, 87 struct lp_type dst_type, 115 struct lp_type dst_type, 123 struct lp_type dst_type, 131 struct lp_type dst_type, 139 struct lp_type dst_type, 147 struct lp_type dst_type,
|
D | lp_bld_conv.h | 62 struct lp_type dst_type, 69 struct lp_type dst_type, 77 struct lp_type* dst_type, 86 struct lp_type dst_type,
|
D | lp_bld_swizzle.c | 95 struct lp_type dst_type, in lp_build_extract_broadcast() argument 102 assert(src_type.floating == dst_type.floating); in lp_build_extract_broadcast() 103 assert(src_type.width == dst_type.width); in lp_build_extract_broadcast() 109 if (dst_type.length == 1) { in lp_build_extract_broadcast() 119 lp_build_vec_type(gallivm, dst_type), in lp_build_extract_broadcast() 123 if (dst_type.length > 1) { in lp_build_extract_broadcast() 129 LLVMVectorType(i32t, dst_type.length), in lp_build_extract_broadcast() 741 struct lp_type dst_type, in lp_build_pack_aos_scalars() argument 749 unsigned num_dst = dst_type.length; in lp_build_pack_aos_scalars() 777 struct lp_type dst_type, in lp_build_unpack_broadcast_aos_scalars() argument [all …]
|
D | lp_bld_swizzle.h | 65 struct lp_type dst_type, 137 struct lp_type dst_type, 145 struct lp_type dst_type,
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_test_conv.c | 65 struct lp_type dst_type, in write_tsv_row() argument 71 fprintf(fp, "%.1f\t", cycles / MAX2(src_type.length, dst_type.length)); in write_tsv_row() 76 dump_type(fp, dst_type); in write_tsv_row() 86 struct lp_type dst_type) in dump_conv_types() argument 92 dump_type(fp, dst_type); in dump_conv_types() 102 struct lp_type dst_type, unsigned num_dsts) in add_conv_test() argument 117 args[1] = LLVMPointerType(lp_build_vec_type(gallivm, dst_type), 0); in add_conv_test() 135 lp_build_conv(gallivm, src_type, dst_type, src, num_srcs, dst, num_dsts); in add_conv_test() 156 struct lp_type dst_type) in test_one() argument 171 if ((src_type.width >= dst_type.width && src_type.length > dst_type.length) || in test_one() [all …]
|
D | lp_state_fs.c | 125 struct lp_type dst_type, 1611 struct lp_type dst_type, in load_unswizzled_block() argument 1625 LLVMValueRef bx = lp_build_const_int32(gallivm, x * (dst_type.width / 8) * dst_type.length); in load_unswizzled_block() 1636 LLVMPointerType(lp_build_vec_type(gallivm, dst_type), 0), ""); in load_unswizzled_block() 1888 have_smallfloat_format(struct lp_type dst_type, in have_smallfloat_format() argument 1891 return ((dst_type.floating && dst_type.width != 32) || in have_smallfloat_format() 1908 struct lp_type dst_type, in convert_to_blend_type() argument 1933 assert(dst_type.floating); in convert_to_blend_type() 1934 assert(dst_type.width == 32); in convert_to_blend_type() 1935 assert(dst_type.length % 4 == 0); in convert_to_blend_type() [all …]
|
D | lp_bld_interp.c | 460 struct lp_type dst_type = coeff_bld->type; in lp_build_interp_soa_indirect() local 461 dst_type.length = 1; in lp_build_interp_soa_indirect() 468 coeff_bld->type.width, dst_type, in lp_build_interp_soa_indirect() 472 coeff_bld->type.width, dst_type, in lp_build_interp_soa_indirect() 476 coeff_bld->type.width, dst_type, in lp_build_interp_soa_indirect() 497 coeff_bld->type.width, dst_type, in lp_build_interp_soa_indirect()
|
/third_party/mesa3d/src/intel/compiler/ |
D | test_eu_validate.cpp | 1162 enum brw_reg_type dst_type; in TEST_P() member 1194 brw_MOV(p, retype(g0, move[i].dst_type), retype(g0, move[i].src_type)); in TEST_P() 1250 enum brw_reg_type dst_type; in TEST_P() member 1255 #define INST(dst_type, src_type, dst_stride, expected_result) \ in TEST_P() argument 1257 BRW_REGISTER_TYPE_##dst_type, \ in TEST_P() 1300 brw_MOV(p, retype(g0, inst[i].dst_type), retype(g0, inst[i].src_type)); in TEST_P() 1311 enum brw_reg_type dst_type; in TEST_P() member 1318 #define INST_C(dst_type, src_type, dst_stride, dst_subnr, expected_result) \ in TEST_P() argument 1320 BRW_REGISTER_TYPE_##dst_type, \ in TEST_P() 1327 #define INST_S(dst_type, src_type, dst_stride, dst_subnr, \ in TEST_P() argument [all …]
|
D | brw_eu_validate.c | 150 unsigned dst_type = signed_type(inst_dst_type(isa, inst)); in inst_is_raw_move() local 167 dst_type == src_type; in inst_is_raw_move() 644 enum brw_reg_type dst_type = brw_inst_dst_type(devinfo, inst); in is_half_float_conversion() local 649 if (dst_type != src0_type && in is_half_float_conversion() 650 (dst_type == BRW_REGISTER_TYPE_HF || src0_type == BRW_REGISTER_TYPE_HF)) { in is_half_float_conversion() 654 return dst_type != src1_type && in is_half_float_conversion() 655 (dst_type == BRW_REGISTER_TYPE_HF || in is_half_float_conversion() 685 enum brw_reg_type dst_type = brw_inst_dst_type(devinfo, inst); in is_mixed_float() local 689 return types_are_mixed_float(src0_type, dst_type); in is_mixed_float() 694 types_are_mixed_float(src0_type, dst_type) || in is_mixed_float() [all …]
|
D | brw_nir_lower_conversions.c | 30 nir_alu_type dst_type, in get_conversion_op() argument 35 nir_alu_type dst_full_type = (nir_alu_type) (dst_type | dst_bit_size); in get_conversion_op() 74 nir_alu_type dst_type = nir_alu_type_get_base_type(dst_full_type); in lower_alu_instr() local 95 dst_type, dst_bit_size, in lower_alu_instr() 117 nir_op op1 = get_conversion_op(src_type, src_bit_size, dst_type, 32, 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/freedreno/ir3/ |
D | ir3_cf.c | 37 if (type_size(instr->cat1.src_type) == type_size(instr->cat1.dst_type) || in is_safe_conv() 38 full_type(instr->cat1.src_type) != full_type(instr->cat1.dst_type)) in is_safe_conv() 77 if (type_size(instr->cat1.dst_type) < type_size(instr->cat1.src_type)) in is_safe_conv() 123 use->cat1.src_type = use->cat1.dst_type; in rewrite_src_uses() 149 type_t dst_type = ir3_output_conv_dst_type(src, base_type); in try_conversion_folding() local 155 if (src_type != dst_type) in try_conversion_folding()
|
D | ir3_cse.c | 61 hash = HASH(hash, instr->cat1.dst_type); in hash_instr() 112 if (i1->cat1.dst_type != i2->cat1.dst_type || in instrs_equal()
|
D | ir3.h | 341 type_t src_type, dst_type; member 841 unsigned dst_type = (dst->flags & IR3_REG_HALF); in is_same_type_reg() local 847 if (dst_type != src_type || in is_same_type_reg() 865 if (instr->cat1.src_type != instr->cat1.dst_type) in is_same_type_mov() 916 type_t dst_type = instr->cat1.dst_type; in is_const_mov() local 918 return (type_float(src_type) && type_float(dst_type)) || in is_const_mov() 919 (type_uint(src_type) && type_uint(dst_type)) || in is_const_mov() 920 (type_sint(src_type) && type_sint(dst_type)); in is_const_mov() 1936 mov->cat1.dst_type = type; in create_immed_typed() 1957 mov->cat1.dst_type = type; in create_uniform_typed() [all …]
|
D | ir3_cp.c | 444 if (src->cat1.dst_type == TYPE_F16) { in reg_cp() 454 } else if (src->cat1.dst_type == TYPE_U16) { in reg_cp() 593 instr->cat1.src_type != instr->cat1.dst_type && in instr_cp() 598 full_type(instr->cat1.dst_type) == TYPE_U32) { in instr_cp() 600 if (instr->cat1.dst_type == TYPE_U16) in instr_cp() 607 instr->cat1.src_type = instr->cat1.dst_type; in instr_cp()
|
D | ir3_lower_subgroups.c | 69 mov->cat1.dst_type = (dst->flags & IR3_REG_HALF) ? TYPE_U16 : TYPE_U32; in mov_immed() 70 mov->cat1.src_type = mov->cat1.dst_type; in mov_immed() 88 mov->cat1.dst_type = (dst->flags & IR3_REG_HALF) ? TYPE_U16 : TYPE_U32; in mov_reg() 377 mov->cat1.dst_type = TYPE_U32; in lower_instr() 390 swz->cat1.dst_type = swz->cat1.src_type = TYPE_U32; in lower_instr()
|
D | ir3_compiler_nir.c | 131 type_t src_type, dst_type; in create_cov() local 213 dst_type = TYPE_F32; in create_cov() 222 dst_type = TYPE_F16; in create_cov() 228 dst_type = TYPE_S32; in create_cov() 234 dst_type = TYPE_S16; in create_cov() 240 dst_type = TYPE_S8; in create_cov() 245 dst_type = TYPE_U32; in create_cov() 250 dst_type = TYPE_U16; in create_cov() 255 dst_type = TYPE_U8; in create_cov() 262 if (src_type == dst_type) in create_cov() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | sdp.c | 54 const char *dst_type; /**< destination IP address type */ member 82 sdp_write_address(buff, size, s->dst_addr, s->dst_type, s->ttl); in sdp_write_header() 781 char dst[32], dst_type[5]; in av_sdp_create() local 793 is_multicast = resolve_destination(dst, sizeof(dst), dst_type, in av_sdp_create() 794 sizeof(dst_type)); in av_sdp_create() 799 s.dst_type = dst_type; in av_sdp_create() 801 if (!strcmp(dst_type, "IP6")) { in av_sdp_create() 813 is_multicast = resolve_destination(dst, sizeof(dst), dst_type, in av_sdp_create() 814 sizeof(dst_type)); in av_sdp_create() 820 dst[0] ? dst : NULL, dst_type, in av_sdp_create()
|
/third_party/mesa3d/src/mesa/main/ |
D | format_utils.c | 288 enum mesa_array_format_datatype src_type = 0, dst_type = 0, common_type; in _mesa_format_convert() local 429 dst_type = _mesa_array_format_get_datatype(dst_array_format); in _mesa_format_convert() 447 _mesa_swizzle_and_convert(dst, dst_type, dst_num_channels, in _mesa_format_convert() 559 _mesa_swizzle_and_convert(dst, dst_type, dst_num_channels, in _mesa_format_convert() 602 _mesa_swizzle_and_convert(dst, dst_type, dst_num_channels, in _mesa_format_convert() 646 _mesa_swizzle_and_convert(dst, dst_type, dst_num_channels, in _mesa_format_convert() 799 enum mesa_array_format_datatype dst_type, in swizzle_convert_try_memcpy() argument 808 if (src_type != dst_type) in swizzle_convert_try_memcpy() 1533 _mesa_swizzle_and_convert(void *void_dst, enum mesa_array_format_datatype dst_type, int num_dst_cha… in _mesa_swizzle_and_convert() argument 1537 if (swizzle_convert_try_memcpy(void_dst, dst_type, num_dst_channels, in _mesa_swizzle_and_convert() [all …]
|
/third_party/skia/third_party/externals/tint/src/ast/ |
D | module_clone_test.cc | 146 for (auto* dst_type : dst.Types()) { in TEST() local 147 ASSERT_EQ(src_types.count(dst_type), 0u); in TEST()
|
/third_party/skia/third_party/externals/tint/fuzzers/ |
D | tint_ast_clone_fuzzer.cc | 87 for (auto* dst_type : dst.Types()) { in LLVMFuzzerTestOneInput() local 88 ASSERT_EQ(src_types.count(dst_type), 0u); in LLVMFuzzerTestOneInput()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_convert_alu_types.c | 197 nir_alu_type dst_type = nir_op_infos[alu->op].output_type; in lower_alu_conversion() local 199 .src_type = src_type, .dest_type = dst_type, in lower_alu_conversion()
|