Lines Matching defs:src_type
59 struct lp_type src_type;
61 memset(&src_type, 0, sizeof src_type);
62 src_type.floating = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FLOAT;
63 src_type.fixed = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FIXED;
64 src_type.sign = format_desc->channel[0].type != UTIL_FORMAT_TYPE_UNSIGNED;
65 src_type.norm = format_desc->channel[0].normalized;
66 src_type.width = format_desc->channel[0].size;
67 src_type.length = format_desc->nr_channels;
69 assert(src_type.length <= dst_type.length);
71 src_vec_type = lp_build_vec_type(gallivm, src_type);
78 lp_set_load_alignment(res, src_type.width / 8);
82 if (src_type.floating && src_type.width == 64) {
83 src_type.width = 32;
84 src_vec_type = lp_build_vec_type(gallivm, src_type);
90 if (src_type.length < dst_type.length) {
91 res = lp_build_pad_vector(gallivm, res, src_type, dst_type.length);
92 src_type.length = dst_type.length;
96 lp_build_conv(gallivm, src_type, dst_type, &res, 1, &res, 1);