Lines Matching refs:type

95  * \param type  the desired type for rgba_out (type.length = n, above)
102 struct lp_type type,
115 assert(format_desc->block.bits <= type.width);
117 assert(type.floating);
118 assert(type.width == 32);
120 lp_build_context_init(&bld, gallivm, type);
131 switch(format_desc->channel[chan].type) {
133 input = lp_build_undef(gallivm, type);
142 input = LLVMBuildLShr(builder, input, lp_build_const_int_vec(gallivm, type, start), "");
151 input = LLVMBuildAnd(builder, input, lp_build_const_int_vec(gallivm, type, mask), "");
158 if (type.floating) {
160 input = lp_build_unsigned_norm_to_float(gallivm, width, type, input);
163 lp_build_vec_type(gallivm, type), "");
168 input = lp_build_undef(gallivm, type);
178 if (stop < type.width) {
179 unsigned bits = type.width - stop;
180 LLVMValueRef bits_val = lp_build_const_int_vec(gallivm, type, bits);
188 if (format_desc->channel[chan].size < type.width) {
189 unsigned bits = type.width - format_desc->channel[chan].size;
190 LLVMValueRef bits_val = lp_build_const_int_vec(gallivm, type, bits);
198 if (type.floating) {
199 input = LLVMBuildSIToFP(builder, input, lp_build_vec_type(gallivm, type), "");
202 LLVMValueRef scale_val = lp_build_const_vec(gallivm, type, scale);
209 input = lp_build_undef(gallivm, type);
215 if (type.floating) {
218 assert(type.width == 32);
219 input = LLVMBuildBitCast(builder, input, lp_build_vec_type(gallivm, type), "");
224 input = lp_build_undef(gallivm, type);
229 if (type.floating) {
231 LLVMValueRef scale_val = lp_build_const_vec(gallivm, type, scale);
232 input = LLVMBuildSIToFP(builder, input, lp_build_vec_type(gallivm, type), "");
238 input = lp_build_undef(gallivm, type);
244 input = lp_build_undef(gallivm, type);
296 * \param type the desired return type for 'rgba'. The vector length
311 struct lp_type type,
325 format_desc->block.bits <= type.width &&
326 (format_desc->channel[0].type != UTIL_FORMAT_TYPE_FLOAT ||
342 type.length,
344 type.width,
352 type,
362 type.floating && type.width == 32 &&
363 (type.length == 1 || (type.length % 4 == 0))) {
369 tmp_type.length = type.length * 4;
376 type,
401 tmp_type = type;
405 rgba_out[chan] = lp_build_undef(gallivm, type);
409 for(k = 0; k < type.length; ++k) {