/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_init.c | 111 create_pass_manager(struct gallivm_state *gallivm) in create_pass_manager() argument 113 assert(!gallivm->passmgr); in create_pass_manager() 114 assert(gallivm->target); in create_pass_manager() 116 gallivm->passmgr = LLVMCreateFunctionPassManagerForModule(gallivm->module); in create_pass_manager() 117 if (!gallivm->passmgr) in create_pass_manager() 121 gallivm->cgpassmgr = LLVMCreatePassManager(); in create_pass_manager() 132 td_str = LLVMCopyStringRepOfTargetData(gallivm->target); in create_pass_manager() 133 LLVMSetDataLayout(gallivm->module, td_str); in create_pass_manager() 139 LLVMAddArgumentPromotionPass(gallivm->cgpassmgr); in create_pass_manager() 140 LLVMAddFunctionAttrsPass(gallivm->cgpassmgr); in create_pass_manager() [all …]
|
D | lp_bld_coro.c | 43 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 …]
|
D | lp_bld_format_s3tc.c | 75 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 …]
|
D | lp_bld_nir_soa.c | 61 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 …]
|
D | lp_bld_flow.c | 55 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 …]
|
D | lp_bld_format_yuv.c | 55 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 …]
|
D | lp_bld_gather.c | 49 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 …]
|
D | lp_bld_format_float.c | 72 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 …]
|
D | lp_bld_pack.c | 87 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 …]
|
D | lp_bld_swizzle.c | 48 lp_build_broadcast(struct gallivm_state *gallivm, in lp_build_broadcast() argument 59 LLVMBuilderRef builder = gallivm->builder; in lp_build_broadcast() 63 LLVMTypeRef i32_type = LLVMInt32TypeInContext(gallivm->context); in lp_build_broadcast() 85 return lp_build_broadcast(bld->gallivm, bld->vec_type, scalar); in lp_build_broadcast_scalar() 93 lp_build_extract_broadcast(struct gallivm_state *gallivm, in lp_build_extract_broadcast() argument 99 LLVMTypeRef i32t = LLVMInt32TypeInContext(gallivm->context); in lp_build_extract_broadcast() 121 res = lp_build_broadcast(gallivm, in lp_build_extract_broadcast() 122 lp_build_vec_type(gallivm, dst_type), in lp_build_extract_broadcast() 133 shuffle = lp_build_broadcast(gallivm, in lp_build_extract_broadcast() 136 res = LLVMBuildShuffleVector(gallivm->builder, vector, in lp_build_extract_broadcast() [all …]
|
D | lp_bld_const.h | 77 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 …]
|
D | lp_bld_format_aos.c | 151 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 …]
|
D | lp_bld_format_soa.c | 50 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 …]
|
D | lp_bld_conv.c | 99 lp_build_half_to_float(struct gallivm_state *gallivm, in lp_build_half_to_float() argument 102 LLVMBuilderRef builder = gallivm->builder; in lp_build_half_to_float() 109 LLVMTypeRef int_vec_type = lp_build_vec_type(gallivm, i32_type); in lp_build_half_to_float() 117 src = lp_build_pad_vector(gallivm, src, 8); in lp_build_half_to_float() 124 LLVMVectorType(LLVMInt16TypeInContext(gallivm->context), 8), ""); in lp_build_half_to_float() 126 lp_build_vec_type(gallivm, f32_type), src); in lp_build_half_to_float() 138 … LLVMVectorType(LLVMHalfTypeInContext(gallivm->context), src_length), ""); in lp_build_half_to_float() 139 return LLVMBuildFPExt(builder, src, lp_build_vec_type(gallivm, f32_type), ""); in lp_build_half_to_float() 144 return lp_build_smallfloat_to_float(gallivm, f32_type, h, 10, 5, 0, true); in lp_build_half_to_float() 160 lp_build_float_to_half(struct gallivm_state *gallivm, in lp_build_float_to_half() argument [all …]
|
D | lp_bld_coro.h | 34 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 …]
|
D | lp_bld_format_srgb.c | 95 lp_build_srgb_to_linear(struct gallivm_state *gallivm, in lp_build_srgb_to_linear() argument 113 lp_build_context_init(&f32_bld, gallivm, f32_type); in lp_build_srgb_to_linear() 133 LLVMValueRef rescale_const = lp_build_const_vec(gallivm, f32_type, in lp_build_srgb_to_linear() 137 lin_const = lp_build_const_vec(gallivm, f32_type, 1.0f / (12.6f * 255.0f)); in lp_build_srgb_to_linear() 142 lin_thresh = lp_build_const_vec(gallivm, f32_type, 15.0f); in lp_build_srgb_to_linear() 143 is_linear = lp_build_compare(gallivm, f32_type, PIPE_FUNC_LEQUAL, srcf, lin_thresh); in lp_build_srgb_to_linear() 161 lp_build_linear_to_srgb(struct gallivm_state *gallivm, in lp_build_linear_to_srgb() argument 166 LLVMBuilderRef builder = gallivm->builder; in lp_build_linear_to_srgb() 170 lp_build_context_init(&f32_bld, gallivm, src_type); in lp_build_linear_to_srgb() 193 exponent = lp_build_const_vec(gallivm, src_type, exp_f); in lp_build_linear_to_srgb() [all …]
|
D | lp_bld_const.c | 225 lp_build_undef(struct gallivm_state *gallivm, struct lp_type type) in lp_build_undef() argument 227 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_undef() 233 lp_build_zero(struct gallivm_state *gallivm, struct lp_type type) in lp_build_zero() argument 237 return lp_build_const_float(gallivm, 0.0); in lp_build_zero() 239 return LLVMConstInt(LLVMIntTypeInContext(gallivm->context, type.width), 0, 0); in lp_build_zero() 242 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_zero() 249 lp_build_one(struct gallivm_state *gallivm, struct lp_type type) in lp_build_one() argument 257 elem_type = lp_build_elem_type(gallivm, type); in lp_build_one() 272 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_one() 299 lp_build_const_elem(struct gallivm_state *gallivm, in lp_build_const_elem() argument [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_jit.c | 46 create_jit_texture_type(struct gallivm_state *gallivm) in create_jit_texture_type() argument 48 LLVMContextRef lc = gallivm->context; in create_jit_texture_type() 70 gallivm->target, texture_type, in create_jit_texture_type() 73 gallivm->target, texture_type, in create_jit_texture_type() 76 gallivm->target, texture_type, in create_jit_texture_type() 79 gallivm->target, texture_type, in create_jit_texture_type() 82 gallivm->target, texture_type, in create_jit_texture_type() 85 gallivm->target, texture_type, in create_jit_texture_type() 88 gallivm->target, texture_type, in create_jit_texture_type() 91 gallivm->target, texture_type, in create_jit_texture_type() [all …]
|
D | lp_state_setup.c | 89 store_coef(struct gallivm_state *gallivm, in store_coef() argument 96 LLVMBuilderRef builder = gallivm->builder; in store_coef() 97 LLVMValueRef idx = lp_build_const_int32(gallivm, slot); in store_coef() 115 emit_constant_coef4(struct gallivm_state *gallivm, in emit_constant_coef4() argument 120 store_coef(gallivm, args, slot, vert, args->bld.zero, args->bld.zero); in emit_constant_coef4() 130 emit_facing_coef(struct gallivm_state *gallivm, in emit_facing_coef() argument 134 LLVMBuilderRef builder = gallivm->builder; in emit_facing_coef() 135 LLVMTypeRef float_type = LLVMFloatTypeInContext(gallivm->context); in emit_facing_coef() 148 lp_build_const_float(gallivm, 2.0), in emit_facing_coef() 150 lp_build_const_float(gallivm, -1.0), in emit_facing_coef() [all …]
|
D | lp_test_printf.c | 61 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 …]
|
D | lp_bld_interp.c | 138 struct gallivm_state *gallivm = coeff_bld->gallivm; in calc_offsets() local 139 LLVMBuilderRef builder = coeff_bld->gallivm->builder; in calc_offsets() 146 nr = lp_build_const_int32(gallivm, i); in calc_offsets() 147 pixxf = lp_build_const_float(gallivm, quad_offset_x[i % num_pix] + in calc_offsets() 149 pixyf = lp_build_const_float(gallivm, quad_offset_y[i % num_pix] + in calc_offsets() 158 struct gallivm_state *gallivm, in calc_centroid_offsets() argument 165 LLVMBuilderRef builder = gallivm->builder; in calc_centroid_offsets() 171 …LLVMValueRef s_mask_idx = LLVMBuildMul(builder, bld->num_loop, lp_build_const_int32(gallivm, s), "… in calc_centroid_offsets() 180 LLVMValueRef x_val_idx = lp_build_const_int32(gallivm, s * 2); in calc_centroid_offsets() 181 LLVMValueRef y_val_idx = lp_build_const_int32(gallivm, s * 2 + 1); in calc_centroid_offsets() [all …]
|
D | lp_tex_sample.c | 111 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 …]
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_llvm.c | 115 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 …]
|
D | draw_llvm_sample.c | 103 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 …]
|
/third_party/mesa3d/src/gallium/drivers/swr/ |
D | swr_tex_sample.cpp | 102 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 …]
|