Home | History | Annotate | Download | only in llvmpipe

Lines Matching defs:dst_type

56            "dst_type\n");
65 struct lp_type dst_type,
71 fprintf(fp, "%.1f\t", cycles / MAX2(src_type.length, dst_type.length));
76 dump_type(fp, dst_type);
86 struct lp_type dst_type)
91 fprintf(fp, " dst_type=");
92 dump_type(fp, dst_type);
102 struct lp_type dst_type, unsigned num_dsts)
117 args[1] = LLVMPointerType(lp_build_vec_type(gallivm, dst_type), 0);
135 lp_build_conv(gallivm, src_type, dst_type, src, num_srcs, dst, num_dsts);
156 struct lp_type dst_type)
170 if ((src_type.width >= dst_type.width && src_type.length > dst_type.length) ||
171 (src_type.width <= dst_type.width && src_type.length < dst_type.length)) {
179 if ((src_type.floating && !dst_type.floating && dst_type.sign && dst_type.norm && src_type.width == dst_type.width) ||
180 (!src_type.floating && dst_type.floating && src_type.fixed && src_type.width == dst_type.width)) {
188 if ((src_type.floating && !dst_type.floating && dst_type.sign && dst_type.norm && src_type.width == dst_type.width) ||
189 (!src_type.floating && dst_type.floating && src_type.fixed && src_type.width == dst_type.width)) {
194 dump_conv_types(stderr, src_type, dst_type);
196 if (src_type.length > dst_type.length) {
198 num_dsts = src_type.length/dst_type.length;
200 else if (src_type.length < dst_type.length) {
202 num_srcs = dst_type.length/src_type.length;
210 assert(src_type.length * num_srcs == dst_type.length * num_dsts);
212 eps = MAX2(lp_const_eps(src_type), lp_const_eps(dst_type));
216 func = add_conv_test(gallivm, src_type, num_srcs, dst_type, num_dsts);
225 unsigned dst_stride = dst_type.length*dst_type.width/8;
239 write_vec(dst_type, ref + j*dst_stride, fref + j*dst_type.length);
249 if(!compare_vec_with_eps(dst_type, dst + j*dst_stride, ref + j*dst_stride, eps))
255 dump_conv_types(stderr, src_type, dst_type);
278 dump_vec(stderr, dst_type, dst + j*dst_stride);
282 dump_vec(stderr, dst_type, ref + j*dst_stride);
320 write_tsv_row(fp, src_type, dst_type, cycles_avg, success);
390 const struct lp_type *dst_type;
395 for(dst_type = conv_types; dst_type < &conv_types[num_types]; ++dst_type) {
397 if(src_type == dst_type)
400 if(!test_one(verbose, fp, *src_type, *dst_type)){
418 const struct lp_type *dst_type;
426 dst_type = &conv_types[rand() % num_types];
427 } while (src_type == dst_type || src_type->norm != dst_type->norm);
429 if(!test_one(verbose, fp, *src_type, *dst_type))