Home
last modified time | relevance | path

Searched refs:gallivm (Results 1 – 25 of 138) sorted by relevance

123456

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_init.c113 create_pass_manager(struct gallivm_state *gallivm) in create_pass_manager() argument
115 assert(!gallivm->passmgr); in create_pass_manager()
116 assert(gallivm->target); in create_pass_manager()
118 gallivm->passmgr = LLVMCreateFunctionPassManagerForModule(gallivm->module); in create_pass_manager()
119 if (!gallivm->passmgr) in create_pass_manager()
123 gallivm->cgpassmgr = LLVMCreatePassManager(); in create_pass_manager()
134 td_str = LLVMCopyStringRepOfTargetData(gallivm->target); in create_pass_manager()
135 LLVMSetDataLayout(gallivm->module, td_str); in create_pass_manager()
141 LLVMAddArgumentPromotionPass(gallivm->cgpassmgr); in create_pass_manager()
142 LLVMAddFunctionAttrsPass(gallivm->cgpassmgr); in create_pass_manager()
[all …]
Dlp_bld_coro.c43 LLVMValueRef lp_build_coro_id(struct gallivm_state *gallivm) in lp_build_coro_id() argument
46 coro_id_args[0] = lp_build_const_int32(gallivm, 0); in lp_build_coro_id()
47 …coro_id_args[1] = LLVMConstPointerNull(LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0)… in lp_build_coro_id()
50 LLVMValueRef coro_id = lp_build_intrinsic(gallivm->builder, in lp_build_coro_id()
52 LLVMTokenTypeInContext(gallivm->context), in lp_build_coro_id()
57 LLVMValueRef lp_build_coro_size(struct gallivm_state *gallivm) in lp_build_coro_size() argument
59 return lp_build_intrinsic(gallivm->builder, in lp_build_coro_size()
61 LLVMInt32TypeInContext(gallivm->context), in lp_build_coro_size()
65 LLVMValueRef lp_build_coro_begin(struct gallivm_state *gallivm, in lp_build_coro_begin() argument
71 LLVMValueRef coro_hdl = lp_build_intrinsic(gallivm->builder, in lp_build_coro_begin()
[all …]
Dlp_bld_format_s3tc.c75 lp_build_uninterleave2_half(struct gallivm_state *gallivm, in lp_build_uninterleave2_half() argument
92 elems[i] = lp_build_const_int32(gallivm, shufvals[i] + lo_hi); in lp_build_uninterleave2_half()
96 elems[i] = lp_build_const_int32(gallivm, 2*i + lo_hi); in lp_build_uninterleave2_half()
102 return LLVMBuildShuffleVector(gallivm->builder, a, b, shuffle, ""); in lp_build_uninterleave2_half()
111 lp_build_const_extend_shuffle(struct gallivm_state *gallivm, in lp_build_const_extend_shuffle() argument
123 elems[i] = lp_build_const_int32(gallivm, i); in lp_build_const_extend_shuffle()
126 elems[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context)); in lp_build_const_extend_shuffle()
133 lp_build_const_unpackx2_shuffle(struct gallivm_state *gallivm, unsigned n) in lp_build_const_unpackx2_shuffle() argument
143 elems[i + 0] = lp_build_const_int32(gallivm, 0 + j); in lp_build_const_unpackx2_shuffle()
144 elems[i + 1] = lp_build_const_int32(gallivm, n + j); in lp_build_const_unpackx2_shuffle()
[all …]
Dlp_bld_flow.c55 lp_build_insert_new_block(struct gallivm_state *gallivm, const char *name) in lp_build_insert_new_block() argument
62 current_block = LLVMGetInsertBlock(gallivm->builder); in lp_build_insert_new_block()
68 new_block = LLVMInsertBasicBlockInContext(gallivm->context, next_block, name); in lp_build_insert_new_block()
73 new_block = LLVMAppendBasicBlockInContext(gallivm->context, function, name); in lp_build_insert_new_block()
86 struct gallivm_state *gallivm) in lp_build_flow_skip_begin() argument
88 skip->gallivm = gallivm; in lp_build_flow_skip_begin()
90 skip->block = lp_build_insert_new_block(gallivm, "skip"); in lp_build_flow_skip_begin()
104 new_block = lp_build_insert_new_block(skip->gallivm, ""); in lp_build_flow_skip_cond_break()
107 LLVMBuildCondBr(skip->gallivm->builder, cond, skip->block, new_block); in lp_build_flow_skip_cond_break()
109 LLVMPositionBuilderAtEnd(skip->gallivm->builder, new_block); in lp_build_flow_skip_cond_break()
[all …]
Dlp_bld_format_yuv.c55 uyvy_to_yuv_soa(struct gallivm_state *gallivm, in uyvy_to_yuv_soa() argument
63 LLVMBuilderRef builder = gallivm->builder; in uyvy_to_yuv_soa()
97 lp_build_context_init(&bld32, gallivm, type); in uyvy_to_yuv_soa()
99 tmp = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, type, 8), ""); in uyvy_to_yuv_soa()
100 tmp2 = LLVMBuildLShr(builder, tmp, lp_build_const_int_vec(gallivm, type, 16), ""); in uyvy_to_yuv_soa()
101 …sel = lp_build_compare(gallivm, type, PIPE_FUNC_EQUAL, i, lp_build_const_int_vec(gallivm, type, 0)… in uyvy_to_yuv_soa()
108 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, 16), ""); in uyvy_to_yuv_soa()
109 shift = LLVMBuildAdd(builder, shift, lp_build_const_int_vec(gallivm, type, 8), ""); in uyvy_to_yuv_soa()
111 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, -16), ""); in uyvy_to_yuv_soa()
112 shift = LLVMBuildAdd(builder, shift, lp_build_const_int_vec(gallivm, type, 16), ""); in uyvy_to_yuv_soa()
[all …]
Dlp_bld_gather.c49 lp_build_gather_elem_ptr(struct gallivm_state *gallivm, in lp_build_gather_elem_ptr() argument
58 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0)); in lp_build_gather_elem_ptr()
64 LLVMValueRef index = lp_build_const_int32(gallivm, i); in lp_build_gather_elem_ptr()
65 offset = LLVMBuildExtractElement(gallivm->builder, offsets, index, ""); in lp_build_gather_elem_ptr()
68 ptr = LLVMBuildGEP(gallivm->builder, base_ptr, &offset, 1, ""); in lp_build_gather_elem_ptr()
80 lp_build_gather_elem(struct gallivm_state *gallivm, in lp_build_gather_elem() argument
90 LLVMTypeRef src_type = LLVMIntTypeInContext(gallivm->context, src_width); in lp_build_gather_elem()
92 LLVMTypeRef dst_elem_type = LLVMIntTypeInContext(gallivm->context, dst_width); in lp_build_gather_elem()
96 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0)); in lp_build_gather_elem()
98 ptr = lp_build_gather_elem_ptr(gallivm, length, base_ptr, offsets, i); in lp_build_gather_elem()
[all …]
Dlp_bld_nir_soa.c61 LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder; in mask_vec()
79 struct gallivm_state *gallivm = bld_base->base.gallivm; in emit_fetch_64bit() local
80 LLVMBuilderRef builder = gallivm->builder; in emit_fetch_64bit()
89 shuffles[i] = lp_build_const_int32(gallivm, i / 2); in emit_fetch_64bit()
90 shuffles[i + 1] = lp_build_const_int32(gallivm, i / 2 + bld_base->base.type.length); in emit_fetch_64bit()
92 shuffles[i] = lp_build_const_int32(gallivm, i / 2 + bld_base->base.type.length); in emit_fetch_64bit()
93 shuffles[i + 1] = lp_build_const_int32(gallivm, i / 2); in emit_fetch_64bit()
106 struct gallivm_state *gallivm = bld_base->base.gallivm; in emit_store_64bit_split() local
107 LLVMBuilderRef builder = gallivm->builder; in emit_store_64bit_split()
113 …value = LLVMBuildBitCast(gallivm->builder, value, LLVMVectorType(LLVMFloatTypeInContext(gallivm->c… in emit_store_64bit_split()
[all …]
Dlp_bld_format_float.c72 lp_build_float_to_smallfloat(struct gallivm_state *gallivm, in lp_build_float_to_smallfloat() argument
80 LLVMBuilderRef builder = gallivm->builder; in lp_build_float_to_smallfloat()
87 LLVMValueRef zero = lp_build_const_vec(gallivm, f32_type, 0.0f); in lp_build_float_to_smallfloat()
92 lp_build_context_init(&f32_bld, gallivm, f32_type); in lp_build_float_to_smallfloat()
93 lp_build_context_init(&i32_bld, gallivm, i32_type); in lp_build_float_to_smallfloat()
95 i32_smallexpmask = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat()
97 i32_floatexpmask = lp_build_const_int_vec(gallivm, i32_type, 0xff << 23); in lp_build_float_to_smallfloat()
118 i32_roundmask = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat()
130 magic = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat()
136 small_max = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat()
[all …]
Dlp_bld_pack.c87 lp_build_const_unpack_shuffle(struct gallivm_state *gallivm, in lp_build_const_unpack_shuffle() argument
99 elems[i + 0] = lp_build_const_int32(gallivm, 0 + j); in lp_build_const_unpack_shuffle()
100 elems[i + 1] = lp_build_const_int32(gallivm, n + j); in lp_build_const_unpack_shuffle()
111 lp_build_const_unpack_shuffle_half(struct gallivm_state *gallivm, in lp_build_const_unpack_shuffle_half() argument
124 elems[i + 0] = lp_build_const_int32(gallivm, 0 + j); in lp_build_const_unpack_shuffle_half()
125 elems[i + 1] = lp_build_const_int32(gallivm, n + j); in lp_build_const_unpack_shuffle_half()
136 lp_build_const_unpack_shuffle_16wide(struct gallivm_state *gallivm, in lp_build_const_unpack_shuffle_16wide() argument
150 elems[i] = lp_build_const_int32(gallivm, j); in lp_build_const_unpack_shuffle_16wide()
161 lp_build_const_pack_shuffle(struct gallivm_state *gallivm, unsigned n) in lp_build_const_pack_shuffle() argument
170 elems[i] = lp_build_const_int32(gallivm, 2*i); in lp_build_const_pack_shuffle()
[all …]
Dlp_bld_swizzle.c47 lp_build_broadcast(struct gallivm_state *gallivm, in lp_build_broadcast() argument
58 LLVMBuilderRef builder = gallivm->builder; in lp_build_broadcast()
62 LLVMTypeRef i32_type = LLVMInt32TypeInContext(gallivm->context); in lp_build_broadcast()
84 return lp_build_broadcast(bld->gallivm, bld->vec_type, scalar); in lp_build_broadcast_scalar()
92 lp_build_extract_broadcast(struct gallivm_state *gallivm, in lp_build_extract_broadcast() argument
98 LLVMTypeRef i32t = LLVMInt32TypeInContext(gallivm->context); in lp_build_extract_broadcast()
120 res = lp_build_broadcast(gallivm, in lp_build_extract_broadcast()
121 lp_build_vec_type(gallivm, dst_type), in lp_build_extract_broadcast()
132 shuffle = lp_build_broadcast(gallivm, in lp_build_extract_broadcast()
135 res = LLVMBuildShuffleVector(gallivm->builder, vector, in lp_build_extract_broadcast()
[all …]
Dlp_bld_format_aos.c151 scale_bits_up(struct gallivm_state *gallivm, in scale_bits_up() argument
157 LLVMBuilderRef builder = gallivm->builder; in scale_bits_up()
166 lp_build_context_init(&bld, gallivm, src_type); in scale_bits_up()
167 dst_mask = lp_build_const_int_vec(gallivm, src_type, in scale_bits_up()
170 lp_build_const_int_vec(gallivm, src_type, 0)); in scale_bits_up()
180 lp_build_const_int_vec(gallivm, src_type, db), in scale_bits_up()
187 lp_build_const_int_vec(gallivm, src_type, in scale_bits_up()
197 LLVMValueRef shuv = lp_build_const_int_vec(gallivm, src_type, n); in scale_bits_up()
221 lp_build_unpack_arith_rgba_aos(struct gallivm_state *gallivm, in lp_build_unpack_arith_rgba_aos() argument
225 LLVMBuilderRef builder = gallivm->builder; in lp_build_unpack_arith_rgba_aos()
[all …]
Dlp_bld_const.h77 lp_build_undef(struct gallivm_state *gallivm, struct lp_type type);
81 lp_build_zero(struct gallivm_state *gallivm, struct lp_type type);
85 lp_build_one(struct gallivm_state *gallivm, struct lp_type type);
89 lp_build_const_elem(struct gallivm_state *gallivm, struct lp_type type,
93 lp_build_const_vec(struct gallivm_state *gallivm, struct lp_type type,
98 lp_build_const_int_vec(struct gallivm_state *gallivm,
103 lp_build_const_aos(struct gallivm_state *gallivm, struct lp_type type,
109 lp_build_const_mask_aos(struct gallivm_state *gallivm,
116 lp_build_const_mask_aos_swizzled(struct gallivm_state *gallivm,
124 lp_build_const_int32(struct gallivm_state *gallivm, int i) in lp_build_const_int32() argument
[all …]
Dlp_bld_format_soa.c50 convert_to_soa(struct gallivm_state *gallivm, in convert_to_soa() argument
74 aos_channels[j] = lp_build_concat(gallivm, channel, aos_channel_type, pixels_per_channel); in convert_to_soa()
77 lp_build_transpose_aos(gallivm, soa_type, aos_channels, dst_soa); in convert_to_soa()
127 struct gallivm_state *gallivm = bld->gallivm; in lp_build_extract_soa_chan() local
128 LLVMBuilderRef builder = gallivm->builder; in lp_build_extract_soa_chan()
148 lp_build_const_int_vec(gallivm, type, start), ""); in lp_build_extract_soa_chan()
157 lp_build_const_int_vec(gallivm, type, mask), ""); in lp_build_extract_soa_chan()
166 input = lp_build_srgb_to_linear(gallivm, conv_type, width, input); in lp_build_extract_soa_chan()
170 input = lp_build_unsigned_norm_to_float(gallivm, width, type, input); in lp_build_extract_soa_chan()
189 LLVMValueRef bits_val = lp_build_const_int_vec(gallivm, type, bits); in lp_build_extract_soa_chan()
[all …]
Dlp_bld_conv.c91 lp_build_half_to_float(struct gallivm_state *gallivm, in lp_build_half_to_float() argument
94 LLVMBuilderRef builder = gallivm->builder; in lp_build_half_to_float()
101 LLVMTypeRef int_vec_type = lp_build_vec_type(gallivm, i32_type); in lp_build_half_to_float()
109 src = lp_build_pad_vector(gallivm, src, 8); in lp_build_half_to_float()
116 lp_build_vec_type(gallivm, f32_type), src); in lp_build_half_to_float()
128 … LLVMVectorType(LLVMHalfTypeInContext(gallivm->context), src_length), ""); in lp_build_half_to_float()
129 return LLVMBuildFPExt(builder, src, lp_build_vec_type(gallivm, f32_type), ""); in lp_build_half_to_float()
134 return lp_build_smallfloat_to_float(gallivm, f32_type, h, 10, 5, 0, true); in lp_build_half_to_float()
150 lp_build_float_to_half(struct gallivm_state *gallivm, in lp_build_float_to_half() argument
153 LLVMBuilderRef builder = gallivm->builder; in lp_build_float_to_half()
[all …]
Dlp_bld_coro.h34 LLVMValueRef lp_build_coro_id(struct gallivm_state *gallivm);
36 LLVMValueRef lp_build_coro_size(struct gallivm_state *gallivm);
38 LLVMValueRef lp_build_coro_begin(struct gallivm_state *gallivm,
41 LLVMValueRef lp_build_coro_free(struct gallivm_state *gallivm,
44 void lp_build_coro_end(struct gallivm_state *gallivm,
47 void lp_build_coro_resume(struct gallivm_state *gallivm, LLVMValueRef coro_hdl);
49 void lp_build_coro_destroy(struct gallivm_state *gallivm, LLVMValueRef coro_hdl);
51 LLVMValueRef lp_build_coro_done(struct gallivm_state *gallivm, LLVMValueRef coro_hdl);
53 LLVMValueRef lp_build_coro_suspend(struct gallivm_state *gallivm, bool last);
55 LLVMValueRef lp_build_coro_alloc(struct gallivm_state *gallivm, LLVMValueRef id);
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_jit.c45 create_jit_texture_type(struct gallivm_state *gallivm) in create_jit_texture_type() argument
47 LLVMContextRef lc = gallivm->context; in create_jit_texture_type()
69 gallivm->target, texture_type, in create_jit_texture_type()
72 gallivm->target, texture_type, in create_jit_texture_type()
75 gallivm->target, texture_type, in create_jit_texture_type()
78 gallivm->target, texture_type, in create_jit_texture_type()
81 gallivm->target, texture_type, in create_jit_texture_type()
84 gallivm->target, texture_type, in create_jit_texture_type()
87 gallivm->target, texture_type, in create_jit_texture_type()
90 gallivm->target, texture_type, in create_jit_texture_type()
[all …]
Dlp_state_setup.c88 store_coef(struct gallivm_state *gallivm, in store_coef() argument
95 LLVMBuilderRef builder = gallivm->builder; in store_coef()
96 LLVMValueRef idx = lp_build_const_int32(gallivm, slot); in store_coef()
114 emit_constant_coef4(struct gallivm_state *gallivm, in emit_constant_coef4() argument
119 store_coef(gallivm, args, slot, vert, args->bld.zero, args->bld.zero); in emit_constant_coef4()
129 emit_facing_coef(struct gallivm_state *gallivm, in emit_facing_coef() argument
133 LLVMBuilderRef builder = gallivm->builder; in emit_facing_coef()
134 LLVMTypeRef float_type = LLVMFloatTypeInContext(gallivm->context); in emit_facing_coef()
147 lp_build_const_float(gallivm, 2.0), in emit_facing_coef()
149 lp_build_const_float(gallivm, -1.0), in emit_facing_coef()
[all …]
Dlp_bld_interp.c137 struct gallivm_state *gallivm = coeff_bld->gallivm; in calc_offsets() local
138 LLVMBuilderRef builder = coeff_bld->gallivm->builder; in calc_offsets()
145 nr = lp_build_const_int32(gallivm, i); in calc_offsets()
146 pixxf = lp_build_const_float(gallivm, quad_offset_x[i % num_pix] + in calc_offsets()
148 pixyf = lp_build_const_float(gallivm, quad_offset_y[i % num_pix] + in calc_offsets()
157 struct gallivm_state *gallivm, in calc_centroid_offsets() argument
164 LLVMBuilderRef builder = gallivm->builder; in calc_centroid_offsets()
170 …LLVMValueRef s_mask_idx = LLVMBuildMul(builder, bld->num_loop, lp_build_const_int32(gallivm, s), "… in calc_centroid_offsets()
179 LLVMValueRef x_val_idx = lp_build_const_int32(gallivm, s * 2); in calc_centroid_offsets()
180 LLVMValueRef y_val_idx = lp_build_const_int32(gallivm, s * 2 + 1); in calc_centroid_offsets()
[all …]
Dlp_test_printf.c61 add_printf_test(struct gallivm_state *gallivm) in add_printf_test() argument
63 LLVMModuleRef module = gallivm->module; in add_printf_test()
64 LLVMTypeRef args[1] = { LLVMIntTypeInContext(gallivm->context, 32) }; in add_printf_test()
65 …ddFunction(module, "test_printf", LLVMFunctionType(LLVMVoidTypeInContext(gallivm->context), args, … in add_printf_test()
66 LLVMBuilderRef builder = gallivm->builder; in add_printf_test()
67 LLVMBasicBlockRef block = LLVMAppendBasicBlockInContext(gallivm->context, func, "entry"); in add_printf_test()
72 lp_build_printf(gallivm, "hello, world\n"); in add_printf_test()
73 …lp_build_printf(gallivm, "print 5 6: %d %d\n", LLVMConstInt(LLVMInt32TypeInContext(gallivm->contex… in add_printf_test()
74 LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), 6, 0)); in add_printf_test()
77 …lp_build_assert(gallivm, LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), 1, 0), "assert(1)"… in add_printf_test()
[all …]
Dlp_tex_sample.c111 struct gallivm_state *gallivm, in lp_llvm_texture_member() argument
119 LLVMBuilderRef builder = gallivm->builder; in lp_llvm_texture_member()
127 indices[0] = lp_build_const_int32(gallivm, 0); in lp_llvm_texture_member()
129 indices[1] = lp_build_const_int32(gallivm, LP_JIT_CTX_TEXTURES); in lp_llvm_texture_member()
131 indices[2] = lp_build_const_int32(gallivm, texture_unit); in lp_llvm_texture_member()
133 indices[2] = LLVMBuildAdd(gallivm->builder, indices[2], texture_unit_offset, ""); in lp_llvm_texture_member()
134 …LLVMValueRef cond = LLVMBuildICmp(gallivm->builder, LLVMIntULT, indices[2], lp_build_const_int32(g… in lp_llvm_texture_member()
135 …indices[2] = LLVMBuildSelect(gallivm->builder, cond, indices[2], lp_build_const_int32(gallivm, tex… in lp_llvm_texture_member()
138 indices[3] = lp_build_const_int32(gallivm, member_index); in lp_llvm_texture_member()
165 struct gallivm_state *gallivm, \
[all …]
Dlp_state_fs.c116 load_unswizzled_block(struct gallivm_state *gallivm,
221 generate_quad_mask(struct gallivm_state *gallivm, in generate_quad_mask() argument
227 LLVMBuilderRef builder = gallivm->builder; in generate_quad_mask()
229 LLVMTypeRef i32t = LLVMInt32TypeInContext(gallivm->context); in generate_quad_mask()
264 mask_input = LLVMBuildLShr(builder, mask_input, lp_build_const_int64(gallivm, 16 * sample), ""); in generate_quad_mask()
267 mask_input = LLVMBuildAnd(builder, mask_input, lp_build_const_int32(gallivm, 0xffff), ""); in generate_quad_mask()
277 mask = lp_build_broadcast(gallivm, in generate_quad_mask()
278 lp_build_vec_type(gallivm, mask_type), in generate_quad_mask()
294 mask = lp_build_compare(gallivm, in generate_quad_mask()
328 struct gallivm_state *gallivm, in lp_llvm_viewport() argument
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c115 create_jit_dvbuffer_type(struct gallivm_state *gallivm, in create_jit_dvbuffer_type() argument
118 LLVMTargetDataRef target = gallivm->target; in create_jit_dvbuffer_type()
121 LLVMTypeRef int32_type = LLVMInt32TypeInContext(gallivm->context); in create_jit_dvbuffer_type()
124 LLVMPointerType(LLVMIntTypeInContext(gallivm->context, 8), 0); in create_jit_dvbuffer_type()
127 dvbuffer_type = LLVMStructTypeInContext(gallivm->context, elem_types, in create_jit_dvbuffer_type()
145 create_jit_texture_type(struct gallivm_state *gallivm, const char *struct_name) in create_jit_texture_type() argument
147 LLVMTargetDataRef target = gallivm->target; in create_jit_texture_type()
150 LLVMTypeRef int32_type = LLVMInt32TypeInContext(gallivm->context); in create_jit_texture_type()
160 LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0); in create_jit_texture_type()
166 texture_type = LLVMStructTypeInContext(gallivm->context, elem_types, in create_jit_texture_type()
[all …]
Ddraw_llvm_sample.c103 struct gallivm_state *gallivm, in draw_llvm_texture_member() argument
111 LLVMBuilderRef builder = gallivm->builder; in draw_llvm_texture_member()
119 indices[0] = lp_build_const_int32(gallivm, 0); in draw_llvm_texture_member()
121 indices[1] = lp_build_const_int32(gallivm, DRAW_JIT_CTX_TEXTURES); in draw_llvm_texture_member()
123 indices[2] = lp_build_const_int32(gallivm, texture_unit); in draw_llvm_texture_member()
125 indices[2] = LLVMBuildAdd(gallivm->builder, indices[2], texture_unit_offset, ""); in draw_llvm_texture_member()
126 …LLVMValueRef cond = LLVMBuildICmp(gallivm->builder, LLVMIntULT, indices[2], lp_build_const_int32(g… in draw_llvm_texture_member()
127 …indices[2] = LLVMBuildSelect(gallivm->builder, cond, indices[2], lp_build_const_int32(gallivm, tex… in draw_llvm_texture_member()
130 indices[3] = lp_build_const_int32(gallivm, member_index); in draw_llvm_texture_member()
155 struct gallivm_state *gallivm, in draw_llvm_sampler_member() argument
[all …]
/external/mesa3d/src/gallium/auxiliary/
DMakefile.sources383 gallivm/lp_bld_arit.c \
384 gallivm/lp_bld_arit.h \
385 gallivm/lp_bld_arit_overflow.c \
386 gallivm/lp_bld_arit_overflow.h \
387 gallivm/lp_bld_assert.c \
388 gallivm/lp_bld_assert.h \
389 gallivm/lp_bld_bitarit.c \
390 gallivm/lp_bld_bitarit.h \
391 gallivm/lp_bld_const.c \
392 gallivm/lp_bld_const.h \
[all …]
/external/mesa3d/src/gallium/drivers/swr/
Dswr_tex_sample.cpp102 struct gallivm_state *gallivm, in swr_texture_member() argument
109 LLVMBuilderRef builder = gallivm->builder; in swr_texture_member()
117 indices[0] = lp_build_const_int32(gallivm, 0); in swr_texture_member()
122 indices[1] = lp_build_const_int32(gallivm, swr_draw_context_texturesFS); in swr_texture_member()
125 indices[1] = lp_build_const_int32(gallivm, swr_draw_context_texturesVS); in swr_texture_member()
128 indices[1] = lp_build_const_int32(gallivm, swr_draw_context_texturesGS); in swr_texture_member()
131 indices[1] = lp_build_const_int32(gallivm, swr_draw_context_texturesTCS); in swr_texture_member()
134 indices[1] = lp_build_const_int32(gallivm, swr_draw_context_texturesTES); in swr_texture_member()
141 indices[2] = lp_build_const_int32(gallivm, texture_unit); in swr_texture_member()
143 indices[3] = lp_build_const_int32(gallivm, member_index); in swr_texture_member()
[all …]

123456