/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_pack.c | 214 struct lp_type src_type, in lp_build_concat() argument 221 assert(src_type.length * num_vectors <= ARRAY_SIZE(shuffles)); in lp_build_concat() 224 new_length = src_type.length; in lp_build_concat() 257 struct lp_type src_type, in lp_build_concat_n() argument 277 dst[i] = lp_build_concat(gallivm, &src[i * size], src_type, size); in lp_build_concat_n() 408 struct lp_type src_type, in lp_build_unpack2() argument 418 assert(!src_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() [all …]
|
D | lp_bld_conv.c | 95 LLVMTypeRef src_type = LLVMTypeOf(src); in lp_build_half_to_float() local 96 unsigned src_length = LLVMGetTypeKind(src_type) == LLVMVectorTypeKind ? in lp_build_half_to_float() 97 LLVMGetVectorSize(src_type) : 1; in lp_build_half_to_float() 254 struct lp_type src_type, in lp_build_clamped_float_to_unsigned_norm() argument 259 LLVMTypeRef int_vec_type = lp_build_int_vec_type(gallivm, src_type); in lp_build_clamped_float_to_unsigned_norm() 263 assert(src_type.floating); in lp_build_clamped_float_to_unsigned_norm() 264 assert(dst_width <= src_type.width); in lp_build_clamped_float_to_unsigned_norm() 265 src_type.sign = FALSE; in lp_build_clamped_float_to_unsigned_norm() 267 mantissa = lp_mantissa(src_type); in lp_build_clamped_float_to_unsigned_norm() 287 res = LLVMBuildFMul(builder, src, lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm() [all …]
|
D | lp_bld_format_srgb.c | 96 struct lp_type src_type, in lp_build_srgb_to_linear() argument 100 struct lp_type f32_type = lp_type_float_vec(32, src_type.length * 32); in lp_build_srgb_to_linear() 109 assert(src_type.width == 32); in lp_build_srgb_to_linear() 162 struct lp_type src_type, in lp_build_linear_to_srgb() argument 170 lp_build_context_init(&f32_bld, gallivm, src_type); in lp_build_linear_to_srgb() 188 struct lp_type int_type = lp_int_type(src_type); in lp_build_linear_to_srgb() 193 exponent = lp_build_const_vec(gallivm, src_type, exp_f); in lp_build_linear_to_srgb() 194 coeff = lp_build_const_vec(gallivm, src_type, in lp_build_linear_to_srgb() 207 lp_build_vec_type(gallivm, src_type), ""); in lp_build_linear_to_srgb() 228 coeff = lp_build_const_vec(gallivm, src_type, in lp_build_linear_to_srgb() [all …]
|
D | lp_bld_format_aos_array.c | 63 struct lp_type src_type; in lp_build_fetch_rgba_aos_array() local 67 lp_type_from_format_desc(&src_type, format_desc); in lp_build_fetch_rgba_aos_array() 69 assert(src_type.length <= dst_type.length); in lp_build_fetch_rgba_aos_array() 71 src_vec_type = lp_build_vec_type(gallivm, src_type); in lp_build_fetch_rgba_aos_array() 84 LLVMSetAlignment(res, src_type.width / 8); in lp_build_fetch_rgba_aos_array() 87 if (src_type.floating && src_type.width == 64) { in lp_build_fetch_rgba_aos_array() 88 src_type.width = 32; in lp_build_fetch_rgba_aos_array() 89 src_vec_type = lp_build_vec_type(gallivm, src_type); in lp_build_fetch_rgba_aos_array() 95 if (src_type.length < dst_type.length) { in lp_build_fetch_rgba_aos_array() 97 src_type.length = dst_type.length; in lp_build_fetch_rgba_aos_array() [all …]
|
D | lp_bld_pack.h | 69 struct lp_type src_type, 78 struct lp_type src_type, 86 struct lp_type src_type, 100 struct lp_type src_type, 105 struct lp_type src_type, 114 struct lp_type src_type, 122 struct lp_type src_type, 130 struct lp_type src_type, 138 struct lp_type src_type, 146 struct lp_type src_type,
|
D | lp_bld_gather.c | 90 LLVMTypeRef src_type = LLVMIntTypeInContext(gallivm->context, src_width); in lp_build_gather_elem() local 91 LLVMTypeRef src_ptr_type = LLVMPointerType(src_type, 0); in lp_build_gather_elem() 167 LLVMTypeRef src_type, in lp_build_gather_elem_vec() argument 176 LLVMTypeRef src_ptr_type = LLVMPointerType(src_type, 0); in lp_build_gather_elem_vec() 287 LLVMTypeRef src_type, src_vec_type; in lp_build_gather_avx2() local 293 src_type = src_width == 64 ? LLVMDoubleTypeInContext(gallivm->context) : in lp_build_gather_avx2() 296 src_type = LLVMIntTypeInContext(gallivm->context, src_width); in lp_build_gather_avx2() 298 src_vec_type = LLVMVectorType(src_type, length); in lp_build_gather_avx2() 316 LLVMTypeRef src_ptr_type = LLVMPointerType(src_type, 0); in lp_build_gather_avx2() 422 LLVMTypeRef src_type; in lp_build_gather() local [all …]
|
D | lp_bld_intr.c | 308 struct lp_type src_type, in lp_build_intrinsic_binary_anylength() argument 314 struct lp_type intrin_type = src_type; in lp_build_intrinsic_binary_anylength() 318 unsigned intrin_length = intr_size / src_type.width; in lp_build_intrinsic_binary_anylength() 322 if (intrin_length > src_type.length) { in lp_build_intrinsic_binary_anylength() 326 for (i = 0; i < src_type.length; i++) { in lp_build_intrinsic_binary_anylength() 332 if (src_type.length == 1) { in lp_build_intrinsic_binary_anylength() 343 if (src_type.length > 1) { in lp_build_intrinsic_binary_anylength() 344 constvec = LLVMConstVector(elems, src_type.length); in lp_build_intrinsic_binary_anylength() 351 else if (intrin_length < src_type.length) { in lp_build_intrinsic_binary_anylength() 352 unsigned num_vec = src_type.length / intrin_length; in lp_build_intrinsic_binary_anylength() [all …]
|
D | lp_bld_conv.h | 55 struct lp_type src_type, 68 struct lp_type src_type, 76 struct lp_type src_type, 85 struct lp_type src_type,
|
D | lp_bld_format_float.c | 242 LLVMTypeRef src_type = LLVMTypeOf(*src); in lp_build_float_to_r11g11b10() local 243 unsigned src_length = LLVMGetTypeKind(src_type) == LLVMVectorTypeKind ? in lp_build_float_to_r11g11b10() 244 LLVMGetVectorSize(src_type) : 1; in lp_build_float_to_r11g11b10() 408 LLVMTypeRef src_type = LLVMTypeOf(src); in lp_build_r11g11b10_to_float() local 409 unsigned src_length = LLVMGetTypeKind(src_type) == LLVMVectorTypeKind ? in lp_build_r11g11b10_to_float() 410 LLVMGetVectorSize(src_type) : 1; in lp_build_r11g11b10_to_float() 465 LLVMTypeRef src_type = LLVMTypeOf(src); in lp_build_rgb9e5_to_float() local 467 unsigned src_length = LLVMGetTypeKind(src_type) == LLVMVectorTypeKind ? in lp_build_rgb9e5_to_float() 468 LLVMGetVectorSize(src_type) : 1; in lp_build_rgb9e5_to_float()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_test_conv.c | 64 struct lp_type src_type, in write_tsv_row() argument 71 fprintf(fp, "%.1f\t", cycles / MAX2(src_type.length, dst_type.length)); in write_tsv_row() 73 dump_type(fp, src_type); in write_tsv_row() 85 struct lp_type src_type, in dump_conv_types() argument 89 dump_type(fp, src_type); in dump_conv_types() 101 struct lp_type src_type, unsigned num_srcs, in add_conv_test() argument 116 args[0] = LLVMPointerType(lp_build_vec_type(gallivm, src_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() 155 struct lp_type src_type, in test_one() argument 171 if ((src_type.width >= dst_type.width && src_type.length > dst_type.length) || in test_one() [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_builtin_builder.c | 308 if (tex->src[i].src_type == nir_tex_src_texture_deref || in nir_get_texture_size() 309 tex->src[i].src_type == nir_tex_src_sampler_deref || in nir_get_texture_size() 310 tex->src[i].src_type == nir_tex_src_texture_offset || in nir_get_texture_size() 311 tex->src[i].src_type == nir_tex_src_sampler_offset || in nir_get_texture_size() 312 tex->src[i].src_type == nir_tex_src_texture_handle || in nir_get_texture_size() 313 tex->src[i].src_type == nir_tex_src_sampler_handle) in nir_get_texture_size() 329 if (tex->src[i].src_type == nir_tex_src_texture_deref || in nir_get_texture_size() 330 tex->src[i].src_type == nir_tex_src_sampler_deref || in nir_get_texture_size() 331 tex->src[i].src_type == nir_tex_src_texture_offset || in nir_get_texture_size() 332 tex->src[i].src_type == nir_tex_src_sampler_offset || in nir_get_texture_size() [all …]
|
D | nir_conversion_builder.h | 110 nir_alu_type src_type, in nir_round_int_to_float() argument 115 src_type = nir_alu_type_get_base_type(src_type); in nir_round_int_to_float() 134 if (src_type == nir_type_int) { in nir_round_int_to_float() 230 nir_ssa_def *src, nir_alu_type src_type, in nir_clamp_to_type_range() argument 233 assert(nir_alu_type_get_type_size(src_type) == 0 || in nir_clamp_to_type_range() 234 nir_alu_type_get_type_size(src_type) == src->bit_size); in nir_clamp_to_type_range() 235 src_type |= src->bit_size; in nir_clamp_to_type_range() 236 if (nir_alu_type_range_contains_type_range(dest_type, src_type)) in nir_clamp_to_type_range() 240 nir_alu_type src_base_type = nir_alu_type_get_base_type(src_type); in nir_clamp_to_type_range() 367 nir_simplify_conversion_rounding(nir_alu_type src_type, in nir_simplify_conversion_rounding() argument [all …]
|
D | nir_lower_drawpixels.c | 150 tex->src[0].src_type = nir_tex_src_texture_deref; in lower_color() 152 tex->src[1].src_type = nir_tex_src_sampler_deref; in lower_color() 154 tex->src[2].src_type = nir_tex_src_coord; in lower_color() 192 tex->src[0].src_type = nir_tex_src_texture_deref; in lower_color() 194 tex->src[1].src_type = nir_tex_src_sampler_deref; in lower_color() 196 tex->src[2].src_type = nir_tex_src_coord; in lower_color() 210 tex->src[0].src_type = nir_tex_src_coord; in lower_color()
|
/external/llvm-project/polly/lib/External/isl/ |
D | isl_multi_move_dims_templ.c | 21 enum isl_dim_type src_type, unsigned src_pos, unsigned n) in MULTI() 29 !isl_space_is_named_or_nested(multi->space, src_type) && in MULTI() 33 if (dst_type == isl_dim_out || src_type == isl_dim_out) in MULTI() 37 if (dst_type == isl_dim_div || src_type == isl_dim_div) in MULTI() 41 if (FN(MULTI(BASE),check_range)(multi, src_type, src_pos, n) < 0) in MULTI() 43 if (dst_type == src_type) in MULTI() 53 src_type, src_pos, n); in MULTI() 58 dst_type, dst_pos, src_type, src_pos, n); in MULTI() 65 src_type, src_pos, n); in MULTI()
|
D | isl_pw_move_dims_templ.c | 13 enum isl_dim_type src_type, unsigned src_pos, unsigned n) in FN() 21 pw->dim = isl_space_move_dims(pw->dim, dst_type, dst_pos, src_type, src_pos, n); in FN() 27 dst_type, dst_pos, src_type, src_pos, n); in FN() 34 if (src_type == isl_dim_in) in FN() 35 src_type = isl_dim_set; in FN() 40 src_type, src_pos, n); in FN()
|
/external/selinux/python/sepolgen/src/sepolgen/ |
D | access.py | 87 self.src_type = None 120 self.src_type = list[0] 133 l = [self.src_type, self.tgt_type, self.obj_class] 150 return "allow %s %s:%s %s;" % (self.src_type, self.tgt_type, 156 a = (self.src_type, self.tgt_type, self.obj_class, x) 160 b = (other.src_type, other.tgt_type, other.obj_class, y) 181 for src_type in avrule.src_types: 185 access.src_type = src_type 272 …def add(self, src_type, tgt_type, obj_class, perms, audit_msg=None, avc_type=audit2why.TERULE, dat… argument 276 av.src_type = src_type [all …]
|
/external/mesa3d/src/freedreno/ir3/ |
D | ir3_cf.c | 48 if (instr->cat1.src_type == TYPE_F32 && in is_fp16_conv() 52 if (instr->cat1.src_type == TYPE_F16 && in is_fp16_conv() 85 use->cat1.src_type = use->cat1.dst_type; in rewrite_src_uses() 123 if (src->cat1.dst_type != src->cat1.src_type && in try_conversion_folding() 124 conv->cat1.src_type != src->cat1.dst_type) in try_conversion_folding() 135 if (src->cat1.dst_type == src->cat1.src_type) { in try_conversion_folding() 141 src->cat1.src_type = conv->cat1.src_type; in try_conversion_folding()
|
D | ir3_nir_lower_tg4_to_tex.c | 58 tex->src[j].src_type = tg4->src[j].src_type; in ir3_nir_lower_tg4_to_tex_instr() 66 tex->src[tg4->num_srcs].src_type = nir_tex_src_offset; in ir3_nir_lower_tg4_to_tex_instr() 76 tex->src[num_srcs - 1].src_type = nir_tex_src_lod; in ir3_nir_lower_tg4_to_tex_instr()
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_meta_blit2d.c | 40 enum blit2d_src_type src_type, 46 enum blit2d_src_type src_type, 51 enum blit2d_src_type src_type, 118 enum blit2d_src_type src_type, VkFormat depth_format, in blit2d_bind_src() argument 124 if (src_type == BLIT2D_SRC_TYPE_BUFFER) { in blit2d_bind_src() 128 device->meta_state.blit2d[log2_samples].p_layouts[src_type], in blit2d_bind_src() 143 device->meta_state.blit2d[log2_samples].p_layouts[src_type], in blit2d_bind_src() 149 if (src_type == BLIT2D_SRC_TYPE_IMAGE_3D) in blit2d_bind_src() 151 device->meta_state.blit2d[log2_samples].p_layouts[src_type], in blit2d_bind_src() 156 device->meta_state.blit2d[log2_samples].p_layouts[src_type], in blit2d_bind_src() [all …]
|
/external/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 420 src_type = _mesa_array_format_get_datatype(src_array_format); in _mesa_format_convert() 449 src, src_type, src_num_channels, in _mesa_format_convert() 538 src, src_type, src_num_channels, in _mesa_format_convert() 583 src, src_type, src_num_channels, in _mesa_format_convert() 627 src, src_type, src_num_channels, in _mesa_format_convert() 803 enum mesa_array_format_datatype src_type, in swizzle_convert_try_memcpy() argument 809 if (src_type != dst_type) in swizzle_convert_try_memcpy() 819 _mesa_array_format_datatype_get_size(src_type)); in swizzle_convert_try_memcpy() 969 const void *void_src, GLenum src_type, int num_src_channels, in convert_float() argument [all …]
|
/external/selinux/python/sepolgen/tests/ |
D | test_access.py | 30 self.assertEqual(a.src_type, None) 40 a.src_type = "foo" 46 self.assertEqual(a.src_type, l.src_type) 53 a.src_type = "foo" 60 self.assertEqual(a.src_type, l.src_type) 71 a.src_type = "foo" 87 a.src_type = "foo" 110 a.src_type = "foo" 116 b.src_type = "foo" 124 b.src_type = "baz" [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_variable.c | 84 unsigned int src_type = rc_source_type_swz( in rc_variable_change_dst() local 96 if (rc_pair_remove_src(reader->Inst, src_type, in rc_variable_change_dst() 103 if (src_type & RC_SOURCE_RGB) { in rc_variable_change_dst() 111 if (src_type & RC_SOURCE_ALPHA) { in rc_variable_change_dst() 122 src_type & RC_SOURCE_RGB, in rc_variable_change_dst() 123 src_type & RC_SOURCE_ALPHA, in rc_variable_change_dst() 131 var->Inst->IP, reader->Inst->IP, src_type, new_index, new_writemask); in rc_variable_change_dst() 446 unsigned int src_type, in reader_equals_src() argument 449 if (reader.Inst->Type != src_type) { in reader_equals_src() 452 if (src_type == RC_INSTRUCTION_NORMAL) { in reader_equals_src() [all …]
|
D | radeon_compiler_util.c | 378 unsigned int src_type) in can_use_presub_data_add_select() argument 385 select->SrcType = src_type; in can_use_presub_data_add_select() 484 unsigned int src_type = d.Selects[i].SrcType; in rc_inst_can_use_presub() local 488 src_type &= ~d.Selects[j].SrcType; in rc_inst_can_use_presub() 491 if (src_type & RC_SOURCE_RGB) { in rc_inst_can_use_presub() 495 if (src_type & RC_SOURCE_ALPHA) { in rc_inst_can_use_presub() 556 unsigned int src_type) in get_source_readmask() argument 564 || src_type != rc_source_type_swz(sub->Arg[i].Swizzle)) { in get_source_readmask() 585 unsigned int src_type, in rc_pair_remove_src() argument 591 readmask |= get_source_readmask(&inst->U.P.RGB, source, src_type); in rc_pair_remove_src() [all …]
|
/external/mesa3d/src/intel/compiler/ |
D | brw_nir_lower_conversions.c | 28 get_conversion_op(nir_alu_type src_type, in get_conversion_op() argument 34 nir_alu_type src_full_type = (nir_alu_type) (src_type | src_bit_size); in get_conversion_op() 69 nir_alu_type src_type = nir_op_infos[alu->op].input_types[0]; in lower_instr() local 70 nir_alu_type src_full_type = (nir_alu_type) (src_type | src_bit_size); in lower_instr() 91 nir_op op1 = get_conversion_op(src_type, src_bit_size, in lower_instr() 117 nir_op op1 = get_conversion_op(src_type, src_bit_size, dst_type, 32, in lower_instr()
|
D | test_eu_validate.cpp | 1160 enum brw_reg_type src_type; in TEST_P() member 1191 brw_MOV(p, retype(g0, move[i].dst_type), retype(g0, move[i].src_type)); in TEST_P() 1248 enum brw_reg_type src_type; in TEST_P() member 1252 #define INST(dst_type, src_type, dst_stride, expected_result) \ in TEST_P() argument 1255 BRW_REGISTER_TYPE_##src_type, \ in TEST_P() 1289 inst[i].src_type == BRW_REGISTER_TYPE_DF) in TEST_P() 1293 (inst[i].src_type == BRW_REGISTER_TYPE_Q || in TEST_P() 1294 inst[i].src_type == BRW_REGISTER_TYPE_UQ)) in TEST_P() 1297 brw_MOV(p, retype(g0, inst[i].dst_type), retype(g0, inst[i].src_type)); in TEST_P() 1309 enum brw_reg_type src_type; in TEST_P() member [all …]
|