Searched defs:vec_type (Results 1 - 25 of 35) sorted by relevance

12

/external/chromium_org/third_party/mesa/src/src/glsl/builtins/tools/
H A Dtexture_builtins.py11 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/glsl/builtins/tools/
H A Dtexture_builtins.py11 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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
H A Dlp_bld_gather.c156 LLVMTypeRef vec_type = LLVMVectorType(LLVMTypeOf(values[0]), value_count); local
158 LLVMValueRef vec = LLVMGetUndef(vec_type);
H A Dlp_bld_type.c121 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 Dlp_bld_type.h149 LLVMTypeRef vec_type; member in struct:lp_build_context
321 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type);
H A Dlp_bld_const.c227 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 Dlp_bld_logic.c120 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 Dlp_bld_swizzle.c48 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 Dlp_bld_conv.c281 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 Dlp_bld_tgsi_aos.c408 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, "");
/external/chromium_org/third_party/mesa/src/src/glsl/
H A Dlower_instructions.cpp161 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 Dglsl_types.cpp697 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/gallium/auxiliary/gallivm/
H A Dlp_bld_gather.c156 LLVMTypeRef vec_type = LLVMVectorType(LLVMTypeOf(values[0]), value_count); local
158 LLVMValueRef vec = LLVMGetUndef(vec_type);
H A Dlp_bld_type.c121 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 Dlp_bld_type.h149 LLVMTypeRef vec_type; member in struct:lp_build_context
321 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type);
H A Dlp_bld_const.c227 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 Dlp_bld_logic.c120 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 Dlp_bld_swizzle.c48 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 Dlp_bld_conv.c281 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 Dlp_bld_tgsi_aos.c408 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, "");
/external/mesa3d/src/glsl/
H A Dlower_instructions.cpp161 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 Dglsl_types.cpp697 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/stlport/test/unit/
H A Dvector_test.cpp132 typedef vector<char> vec_type; typedef
134 vec_type v1; // Empty vector of characters.
142 vec_type v2(v1.begin(), v1.end());
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
H A Dlp_test_blend.c161 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);
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_test_blend.c161 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);

Completed in 294 milliseconds

12