Home
last modified time | relevance | path

Searched refs:src_type (Results 1 – 25 of 57) sorted by relevance

123

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_pack.c184 struct lp_type src_type, in lp_build_concat() argument
191 assert(src_type.length * num_vectors <= Elements(shuffles)); in lp_build_concat()
194 new_length = src_type.length; in lp_build_concat()
276 struct lp_type src_type, in lp_build_unpack2() argument
286 assert(!src_type.floating); in lp_build_unpack2()
288 assert(dst_type.width == src_type.width * 2); in lp_build_unpack2()
289 assert(dst_type.length * 2 == src_type.length); in lp_build_unpack2()
291 if(dst_type.sign && src_type.sign) { in lp_build_unpack2()
293 …msb = LLVMBuildAShr(builder, src, lp_build_const_int_vec(gallivm, src_type, src_type.width - 1), "… in lp_build_unpack2()
297 msb = lp_build_zero(gallivm, src_type); in lp_build_unpack2()
[all …]
Dlp_bld_format_aos_array.c59 struct lp_type src_type; in lp_build_fetch_rgba_aos_array() local
61 memset(&src_type, 0, sizeof src_type); in lp_build_fetch_rgba_aos_array()
62 src_type.floating = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FLOAT; in lp_build_fetch_rgba_aos_array()
63 src_type.fixed = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FIXED; in lp_build_fetch_rgba_aos_array()
64 src_type.sign = format_desc->channel[0].type != UTIL_FORMAT_TYPE_UNSIGNED; in lp_build_fetch_rgba_aos_array()
65 src_type.norm = format_desc->channel[0].normalized; in lp_build_fetch_rgba_aos_array()
66 src_type.width = format_desc->channel[0].size; in lp_build_fetch_rgba_aos_array()
67 src_type.length = format_desc->nr_channels; 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()
[all …]
Dlp_bld_conv.c88 struct lp_type src_type, in lp_build_half_to_float() argument
91 struct lp_type f32_type = lp_type_float_vec(32, 32 * src_type.length); in lp_build_half_to_float()
92 struct lp_type i32_type = lp_type_int_vec(32, 32 * src_type.length); in lp_build_half_to_float()
153 struct lp_type src_type, in lp_build_clamped_float_to_unsigned_norm() argument
158 LLVMTypeRef int_vec_type = lp_build_int_vec_type(gallivm, src_type); in lp_build_clamped_float_to_unsigned_norm()
162 assert(src_type.floating); in lp_build_clamped_float_to_unsigned_norm()
163 assert(dst_width <= src_type.width); in lp_build_clamped_float_to_unsigned_norm()
164 src_type.sign = FALSE; in lp_build_clamped_float_to_unsigned_norm()
166 mantissa = lp_mantissa(src_type); in lp_build_clamped_float_to_unsigned_norm()
186 res = LLVMBuildFMul(builder, src, lp_build_const_vec(gallivm, src_type, scale), ""); in lp_build_clamped_float_to_unsigned_norm()
[all …]
Dlp_bld_pack.h64 struct lp_type src_type,
73 struct lp_type src_type,
87 struct lp_type src_type,
92 struct lp_type src_type,
100 struct lp_type src_type,
108 struct lp_type src_type,
116 struct lp_type src_type,
125 struct lp_type src_type,
Dlp_bld_intr.c145 struct lp_type src_type, in lp_build_intrinsic_binary_anylength() argument
151 struct lp_type intrin_type = src_type; in lp_build_intrinsic_binary_anylength()
155 unsigned intrin_length = intr_size / src_type.width; in lp_build_intrinsic_binary_anylength()
159 if (intrin_length > src_type.length) { in lp_build_intrinsic_binary_anylength()
163 for (i = 0; i < src_type.length; i++) { in lp_build_intrinsic_binary_anylength()
169 if (src_type.length == 1) { in lp_build_intrinsic_binary_anylength()
180 if (src_type.length > 1) { in lp_build_intrinsic_binary_anylength()
181 constvec = LLVMConstVector(elems, src_type.length); in lp_build_intrinsic_binary_anylength()
188 else if (intrin_length < src_type.length) { in lp_build_intrinsic_binary_anylength()
189 unsigned num_vec = src_type.length / intrin_length; in lp_build_intrinsic_binary_anylength()
[all …]
Dlp_bld_conv.h47 struct lp_type src_type,
52 struct lp_type src_type,
65 struct lp_type src_type,
72 struct lp_type src_type,
Dlp_bld_swizzle.c103 struct lp_type src_type, in lp_build_extract_broadcast() argument
111 assert(src_type.floating == dst_type.floating); in lp_build_extract_broadcast()
112 assert(src_type.width == dst_type.width); in lp_build_extract_broadcast()
114 assert(lp_check_value(src_type, vector)); in lp_build_extract_broadcast()
117 if (src_type.length == 1) { in lp_build_extract_broadcast()
146 LLVMGetUndef(lp_build_vec_type(gallivm, src_type)), in lp_build_extract_broadcast()
564 struct lp_type src_type, in lp_build_pack_aos_scalars() argument
571 unsigned num_src = src_type.length / 4; in lp_build_pack_aos_scalars()
600 struct lp_type src_type, in lp_build_unpack_broadcast_aos_scalars() argument
610 assert(num_dst / 4 <= src_type.length); in lp_build_unpack_broadcast_aos_scalars()
[all …]
Dlp_bld_swizzle.h63 struct lp_type src_type,
118 struct lp_type src_type,
125 struct lp_type src_type,
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_conv.c64 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
170 if ((src_type.width >= dst_type.width && src_type.length > dst_type.length) || in test_one()
[all …]
/external/opencv3/modules/cudaarithm/src/cuda/
Dcopy_make_border.cu94 typedef typename MakeVec<T, cn>::type src_type; in copyMakeBorderImpl() typedef
97 const src_type brdVal = VecTraits<src_type>::make(borderValue_.val); in copyMakeBorderImpl()
108 …gridCopy(remapPtr(brdConstant(globPtr<src_type>(src), brdVal), map), globPtr<src_type>(dst), strea… in copyMakeBorderImpl()
111 … gridCopy(remapPtr(brdReplicate(globPtr<src_type>(src)), map), globPtr<src_type>(dst), stream); in copyMakeBorderImpl()
114 … gridCopy(remapPtr(brdReflect(globPtr<src_type>(src)), map), globPtr<src_type>(dst), stream); in copyMakeBorderImpl()
117 … gridCopy(remapPtr(brdWrap(globPtr<src_type>(src)), map), globPtr<src_type>(dst), stream); in copyMakeBorderImpl()
120 … gridCopy(remapPtr(brdReflect101(globPtr<src_type>(src)), map), globPtr<src_type>(dst), stream); in copyMakeBorderImpl()
Dsum.cu64 typedef typename MakeVec<T, cn>::type src_type; in sumImpl() typedef
67 const GpuMat_<src_type>& src = (const GpuMat_<src_type>&) _src; in sumImpl()
79 typedef typename MakeVec<T, cn>::type src_type; in sumAbsImpl() typedef
82 const GpuMat_<src_type>& src = (const GpuMat_<src_type>&) _src; in sumAbsImpl()
94 typedef typename MakeVec<T, cn>::type src_type; in sumSqrImpl() typedef
97 const GpuMat_<src_type>& src = (const GpuMat_<src_type>&) _src; in sumSqrImpl()
/external/selinux/sepolgen/src/sepolgen/
Daccess.py86 self.src_type = None
117 self.src_type = list[0]
130 l = [self.src_type, self.tgt_type, self.obj_class]
138 return "allow %s %s:%s %s;" % (self.src_type, self.tgt_type,
144 a = (self.src_type, self.tgt_type, self.obj_class, x)
148 b = (other.src_type, other.tgt_type, other.obj_class, y)
169 for src_type in avrule.src_types:
173 access.src_type = src_type
260 …def add(self, src_type, tgt_type, obj_class, perms, audit_msg=None, avc_type=audit2why.TERULE, dat… argument
263 tgt = self.src.setdefault(src_type, { })
[all …]
/external/opencv3/modules/cudev/test/
Dtest_split_merge.cu64 const int src_type = DataType<T>::type; in test_c2() local
66 Mat src1 = randomMat(size, src_type); in test_c2()
67 Mat src2 = randomMat(size, src_type); in test_c2()
86 const int src_type = DataType<T>::type; in test_c3() local
88 Mat src1 = randomMat(size, src_type); in test_c3()
89 Mat src2 = randomMat(size, src_type); in test_c3()
90 Mat src3 = randomMat(size, src_type); in test_c3()
130 const int src_type = CV_MAKE_TYPE(DataType<T>::depth, 3); in test_c3() local
132 Mat src = randomMat(size, src_type); in test_c3()
151 const int src_type = CV_MAKE_TYPE(DataType<T>::depth, 4); in test_c4() local
[all …]
/external/selinux/sepolgen/tests/
Dtest_access.py30 self.assertEqual(a.src_type, None)
39 a.src_type = "foo"
45 self.assertEqual(a.src_type, l.src_type)
52 a.src_type = "foo"
59 self.assertEqual(a.src_type, l.src_type)
66 a.src_type = "foo"
82 a.src_type = "foo"
105 a.src_type = "foo"
111 b.src_type = "foo"
119 b.src_type = "baz"
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_variable.c83 unsigned int src_type = rc_source_type_swz( in rc_variable_change_dst() local
95 if (rc_pair_remove_src(reader->Inst, src_type, in rc_variable_change_dst()
102 if (src_type & RC_SOURCE_RGB) { in rc_variable_change_dst()
110 if (src_type & RC_SOURCE_ALPHA) { in rc_variable_change_dst()
121 src_type & RC_SOURCE_RGB, in rc_variable_change_dst()
122 src_type & RC_SOURCE_ALPHA, in rc_variable_change_dst()
130 var->Inst->IP, reader->Inst->IP, src_type, new_index, new_writemask); in rc_variable_change_dst()
445 unsigned int src_type, in reader_equals_src() argument
448 if (reader.Inst->Type != src_type) { in reader_equals_src()
451 if (src_type == RC_INSTRUCTION_NORMAL) { in reader_equals_src()
[all …]
Dradeon_compiler_util.c378 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 …]
Dradeon_pair_dead_sources.c26 unsigned int src_type = rc_source_type_swz(sub->Arg[i].Swizzle); in mark_used() local
27 if (src_type & RC_SOURCE_RGB) { in mark_used()
31 if (src_type & RC_SOURCE_ALPHA) { in mark_used()
/external/opencv3/modules/cudev/include/opencv2/cudev/grid/detail/
Dreduce.hpp259 template <typename src_type, typename work_type> struct SumReductor
262 enum { cn = VecTraits<src_type>::cn };
271 … __device__ __forceinline__ void reduceVal(typename TypeTraits<src_type>::parameter_type srcVal) in reduceVal()
320 template <class Op, typename src_type, typename work_type> struct MinMaxReductor
329 … __device__ __forceinline__ void reduceVal(typename TypeTraits<src_type>::parameter_type srcVal) in reduceVal()
350 … template <typename src_type, typename work_type> struct MinMaxReductor<both, src_type, work_type>
361 … __device__ __forceinline__ void reduceVal(typename TypeTraits<src_type>::parameter_type srcVal) in reduceVal()
433 typedef typename PtrTraits<SrcPtr>::value_type src_type; in sum() typedef
436 …reduce<SumReductor<src_type, ResType>, Policy>(src, (res_elem_type*) result, mask, rows, cols, str… in sum()
442 typedef typename PtrTraits<SrcPtr>::value_type src_type; in minVal() typedef
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/ptr2d/
Dinterpolation.hpp106 typedef typename PtrTraits<SrcPtr>::value_type src_type; in operator ()() typedef
107 typedef typename VecTraits<src_type>::elem_type src_elem_type; in operator ()()
109 typedef typename MakeVec<work_elem_type, VecTraits<src_type>::cn>::type work_type; in operator ()()
181 typedef typename PtrTraits<SrcPtr>::value_type src_type; in operator ()() typedef
182 typedef typename VecTraits<src_type>::elem_type src_elem_type; in operator ()()
184 typedef typename MakeVec<work_elem_type, VecTraits<src_type>::cn>::type work_type; in operator ()()
244 typedef typename PtrTraits<SrcPtr>::value_type src_type; in operator ()() typedef
245 typedef typename VecTraits<src_type>::elem_type src_elem_type; in operator ()()
247 typedef typename MakeVec<work_elem_type, VecTraits<src_type>::cn>::type work_type; in operator ()()
304 typedef typename PtrTraits<SrcPtr>::value_type src_type; in operator ()() typedef
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/grid/
Dreduce.hpp66 typedef typename PtrTraits<SrcPtr>::value_type src_type; in gridCalcSum_() typedef
68 CV_StaticAssert( unsigned(VecTraits<src_type>::cn) == unsigned(VecTraits<ResType>::cn), "" ); in gridCalcSum_()
88 typedef typename PtrTraits<SrcPtr>::value_type src_type; in gridCalcSum_() typedef
90 CV_StaticAssert( unsigned(VecTraits<src_type>::cn) == unsigned(VecTraits<ResType>::cn), "" ); in gridCalcSum_()
260 typedef typename PtrTraits<SrcPtr>::value_type src_type; in gridCountNonZero_() typedef
261 not_equal_to<src_type> ne_op; in gridCountNonZero_()
262 const src_type zero = VecTraits<src_type>::all(0); in gridCountNonZero_()
280 typedef typename PtrTraits<SrcPtr>::value_type src_type; in gridCountNonZero_() typedef
281 not_equal_to<src_type> ne_op; in gridCountNonZero_()
282 const src_type zero = VecTraits<src_type>::all(0); in gridCountNonZero_()
/external/opencv3/modules/imgproc/perf/
Dperf_remap.cpp24 int src_type, map1_type, inter_type; in PERF_TEST_P() local
27 src_type = get<1>(GetParam()); in PERF_TEST_P()
31 Mat src(sz, src_type), dst(sz, src_type), map1(sz, map1_type), map2; in PERF_TEST_P()
/external/chromium-trace/catapult/telemetry/telemetry/web_perf/metrics/
Dgpu_timeline_unittest.py81 for name, src_type in (('swap', None), ('total', 'cpu'), ('total', 'gpu')):
83 gpu_timeline.TimelineName(name, src_type, 'max'), 'ms', 10)
85 gpu_timeline.TimelineName(name, src_type, 'mean'), 'ms', 10)
87 gpu_timeline.TimelineName(name, src_type, 'stddev'), 'ms', 0)
199 for name, src_type in (('swap', None), ('total', 'cpu'), ('total', 'gpu')):
201 gpu_timeline.TimelineName(name, src_type, 'max'), 'ms', 20)
203 gpu_timeline.TimelineName(name, src_type, 'mean'), 'ms', 15)
205 gpu_timeline.TimelineName(name, src_type, 'stddev'), 'ms', 5)
/external/opencv/cv/src/
Dcvderiv.cpp188 int src_type, dst_type; in cvSobel() local
200 src_type = CV_MAT_TYPE( src->type ); in cvSobel()
208 (src_type == CV_8UC1 && dst_type == CV_16SC1/* || in cvSobel()
223 if( src_type == CV_8U ) in cvSobel()
232 if( src_type == CV_8U ) in cvSobel()
246 if( src_type == CV_8U ) in cvSobel()
255 if( src_type == CV_8U ) in cvSobel()
264 if( src_type == CV_8U ) in cvSobel()
273 if( src_type == CV_8U ) in cvSobel()
282 if( src_type == CV_8U ) in cvSobel()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_format_pack.py315 src_type = src_channel.type
321 if src_type == FLOAT and src_size == 16:
327 …if src_type == UNSIGNED and src_norm and src_size == 8 and dst_channel.type == FLOAT and dst_chann…
329 …if src_type == FLOAT and src_size == 32 and dst_channel.type == UNSIGNED and dst_channel.norm and …
333 if dst_channel.type != FLOAT or src_type != FLOAT:
336 if src_type in (SIGNED, UNSIGNED) and dst_channel.type in (SIGNED, UNSIGNED):
358 if src_type != FLOAT:
359 if src_norm or src_type == FIXED:
379 src_type = FLOAT
/external/valgrind/none/tests/s390x/
Drounding-1.c26 #define convert_to_int(opcode,src_type,dst_type,dst_fmt,round,value) \ argument
28 src_type src = value; \

123