/external/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_type.c | 121 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type) argument 125 assert(vec_type); 126 if(!vec_type) 130 return lp_check_elem_type(type, vec_type); 132 if(LLVMGetTypeKind(vec_type) != LLVMVectorTypeKind) 135 if(LLVMGetVectorSize(vec_type) != type.length) 138 elem_type = LLVMGetElementType(vec_type); 147 LLVMTypeRef vec_type; local 153 vec_type = LLVMTypeOf(val); 155 return lp_check_vec_type(type, vec_type); [all...] |
H A D | lp_bld_logic.c | 120 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local 164 vec_type, 190 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local 229 res = lp_build_intrinsic(builder, pcmpeq, vec_type, args, 2); 231 res = lp_build_intrinsic(builder, pcmpgt, vec_type, args, 2); 233 res = LLVMConstNull(vec_type); 426 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 427 res = LLVMBuildBitCast(builder, res, vec_type, ""); 530 if (arg_type != bld->vec_type) { 542 if (arg_type != bld->vec_type) { [all...] |
H A D | lp_bld_arit.c | 1098 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 1112 a = LLVMBuildBitCast(builder, a, vec_type, ""); 1119 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.b.128", vec_type, a); 1121 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.w.128", vec_type, a); 1123 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.d.128", vec_type, a); 1174 LLVMTypeRef vec_type; local 1182 vec_type = lp_build_vec_type(bld->gallivm, type); 1190 res = LLVMBuildBitCast(builder, res, vec_type, ""); 1222 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 1240 res = LLVMBuildBitCast(builder, res, vec_type, ""); 1255 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 1305 LLVMTypeRef vec_type; local 1395 LLVMTypeRef vec_type; local 1448 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 1478 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 1506 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 1534 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 1637 LLVMTypeRef vec_type = bld->vec_type; local 1685 LLVMTypeRef vec_type = bld->vec_type; local 1741 LLVMTypeRef vec_type = bld->vec_type; local 1840 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 2610 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local 2788 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); local [all...] |
H A D | lp_bld_bitarit.c | 59 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); 85 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); 113 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); 143 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); 164 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
|
H A D | lp_bld_const.c | 227 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local 228 return LLVMGetUndef(vec_type); 242 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); local 243 return LLVMConstNull(vec_type); 272 LLVMTypeRef vec_type = LLVMVectorType(elem_type, type.length); local 273 LLVMValueRef vec = LLVMConstAllOnes(vec_type);
|
H A D | lp_bld_gather.c | 156 LLVMTypeRef vec_type = LLVMVectorType(LLVMTypeOf(values[0]), value_count); local 158 LLVMValueRef vec = LLVMGetUndef(vec_type);
|
H A D | lp_bld_swizzle.h | 52 LLVMTypeRef vec_type,
|
H A D | lp_bld_swizzle.c | 48 LLVMTypeRef vec_type, 53 if (LLVMGetTypeKind(vec_type) != LLVMVectorTypeKind) { 55 assert(vec_type == LLVMTypeOf(scalar)); 59 const unsigned length = LLVMGetVectorSize(vec_type); 60 LLVMValueRef undef = LLVMGetUndef(vec_type); 63 assert(LLVMGetElementType(vec_type) == LLVMTypeOf(scalar)); 94 return lp_build_broadcast(bld->gallivm, bld->vec_type, scalar); 47 lp_build_broadcast(struct gallivm_state *gallivm, LLVMTypeRef vec_type, LLVMValueRef scalar) argument
|
H A D | lp_bld_tgsi_soa.c | 647 res = LLVMConstBitCast(res, bld_base->uint_bld.vec_type); 649 res = LLVMConstBitCast(res, bld_base->int_bld.vec_type); 712 res = LLVMBuildBitCast(builder, res, bld_base->uint_bld.vec_type, ""); 714 res = LLVMBuildBitCast(builder, res, bld_base->int_bld.vec_type, ""); 767 LLVMTypeRef itype = LLVMPointerType(bld->bld_base.int_bld.vec_type, 0); 817 res = LLVMBuildBitCast(builder, res, bld_base->base.vec_type, ""); 819 res = LLVMBuildBitCast(builder, res, bld_base->uint_bld.vec_type, ""); 821 res = LLVMBuildBitCast(builder, res, bld_base->int_bld.vec_type, ""); 1072 LLVMTypeRef itype = bld_base->int_bld.vec_type; 1550 LLVMTypeRef vec_type local 2003 LLVMTypeRef vec_type = bld_base->base.vec_type; local [all...] |
H A D | lp_bld_type.h | 149 LLVMTypeRef vec_type; member in struct:lp_build_context 321 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type);
|
H A D | lp_bld_tgsi_aos.c | 408 LLVMTypeRef vec_type = lp_build_vec_type(bld->bld_base.base.gallivm, bld->bld_base.base.type); local 421 vec_type, array_size, ""); 423 bld->temps[idx] = lp_build_alloca(gallivm, vec_type, ""); 428 bld->outputs[idx] = lp_build_alloca(gallivm, vec_type, ""); 433 bld->addr[idx] = lp_build_alloca(gallivm, vec_type, ""); 438 bld->preds[idx] = lp_build_alloca(gallivm, vec_type, "");
|
H A D | lp_bld_conv.c | 281 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, dst_type); local 304 res = LLVMBuildSIToFP(builder, src, vec_type, ""); 336 res = LLVMBuildBitCast(builder, res, vec_type, "");
|
H A D | lp_bld_sample_soa.c | 1109 texels[chan] = lp_build_alloca(bld->gallivm, bld->texel_bld.vec_type, ""); 1398 texels[0] = lp_build_alloca(gallivm, bld.texel_bld.vec_type, "texr"); 1399 texels[1] = lp_build_alloca(gallivm, bld.texel_bld.vec_type, "texg"); 1400 texels[2] = lp_build_alloca(gallivm, bld.texel_bld.vec_type, "texb"); 1401 texels[3] = lp_build_alloca(gallivm, bld.texel_bld.vec_type, "texa");
|
H A D | lp_bld_sample.c | 1164 face_s_var = lp_build_alloca(gallivm, bld->coord_bld.vec_type, "face_s_var"); 1165 face_t_var = lp_build_alloca(gallivm, bld->coord_bld.vec_type, "face_t_var"); 1166 face_var = lp_build_alloca(gallivm, bld->int_bld.vec_type, "face_var");
|
H A D | lp_bld_tgsi_action.c | 108 bld_base->uint_bld.vec_type, ""); 696 bld_base->base.vec_type, ""); 875 bld_base->uint_bld.vec_type, "");
|
H A D | lp_bld_format_aos.c | 604 res = LLVMBuildBitCast(builder, res, bld.vec_type, "");
|
H A D | lp_bld_sample_aos.c | 1565 packed_lo = lp_build_alloca(bld->gallivm, h16_bld.vec_type, "packed_lo"); 1566 packed_hi = lp_build_alloca(bld->gallivm, h16_bld.vec_type, "packed_hi");
|
/external/mesa3d/src/glsl/ |
H A D | lower_instructions.cpp | 161 const struct glsl_type *vec_type; local 163 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, 168 op1 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[1], NULL); 170 op1 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[1], NULL); 174 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, 179 op0 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[0], NULL); 181 op0 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[0], NULL); 183 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, 187 op0 = new(ir) ir_expression(ir_binop_mul, vec_type, op0, op1);
|
H A D | glsl_types.cpp | 697 const struct glsl_type *vec_type, *array_type; local 702 vec_type = get_instance(GLSL_TYPE_FLOAT, c, 1); 703 array_type = glsl_type::get_array_instance(vec_type, r); 705 vec_type = get_instance(GLSL_TYPE_FLOAT, r, 1); 706 array_type = glsl_type::get_array_instance(vec_type, c); 782 const struct glsl_type *vec_type; local 794 vec_type = get_instance(GLSL_TYPE_FLOAT, 798 vec_type = get_instance(GLSL_TYPE_FLOAT, 802 const glsl_type *array_type = glsl_type::get_array_instance(vec_type,
|
/external/mesa3d/src/glsl/builtins/tools/ |
H A D | texture_builtins.py | 11 def vec_type(g, size): function 64 return_type = vec_type("i", get_txs_dim(sampler_type)) 73 print "\n (declare (in) " + vec_type("i" if tex_inst == "txf" else "", coord_dim + extra_dim) + " P)", 79 grad_type = vec_type("", sampler_dim) 84 print "\n (declare (const_in) " + vec_type("i", sampler_dim) + " offset)",
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_bld_interp.c | 198 LLVMPointerType(setup_bld->vec_type, 0), ""); 203 LLVMPointerType(setup_bld->vec_type, 0), ""); 214 LLVMPointerType(setup_bld->vec_type, 0), ""); 404 LLVMPointerType(setup_bld->vec_type, 0), ""); 409 LLVMPointerType(setup_bld->vec_type, 0), ""); 420 LLVMPointerType(setup_bld->vec_type, 0), "");
|
H A D | lp_state_fs.c | 236 LLVMTypeRef vec_type; local 289 vec_type = lp_build_vec_type(gallivm, type); 298 color[cbuf][chan] = lp_build_alloca(gallivm, vec_type, "color"); 358 alpha_ref_value = lp_build_broadcast(gallivm, vec_type, alpha_ref_value); 460 LLVMTypeRef vec_type; local 517 vec_type = lp_build_vec_type(gallivm, type); 597 alpha_ref_value = lp_build_broadcast(gallivm, vec_type, alpha_ref_value); 707 LLVMTypeRef vec_type; local 720 vec_type = lp_build_vec_type(gallivm, type); 724 LLVMPointerType(vec_type, [all...] |
H A D | lp_test_blend.c | 161 LLVMTypeRef vec_type; local 174 vec_type = lp_build_vec_type(gallivm, type); 176 args[3] = args[2] = args[1] = args[0] = LLVMPointerType(vec_type, 0);
|
H A D | lp_bld_depth.c | 636 LLVMPointerType(z_bld.vec_type, 0), ""); 884 LLVMPointerType(z_bld.vec_type, 0), "");
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_vec4_visitor.cpp | 1562 const struct glsl_type *vec_type; local 1564 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, 1568 emit_block_move(dst, src, vec_type, predicate);
|