/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_init.c | 114 create_pass_manager(struct gallivm_state *gallivm) in create_pass_manager() argument 117 assert(!gallivm->passmgr); in create_pass_manager() 118 assert(gallivm->target); in create_pass_manager() 120 gallivm->passmgr = LLVMCreateFunctionPassManagerForModule(gallivm->module); in create_pass_manager() 121 if (!gallivm->passmgr) in create_pass_manager() 125 gallivm->cgpassmgr = LLVMCreatePassManager(); in create_pass_manager() 136 td_str = LLVMCopyStringRepOfTargetData(gallivm->target); in create_pass_manager() 137 LLVMSetDataLayout(gallivm->module, td_str); in create_pass_manager() 143 LLVMAddArgumentPromotionPass(gallivm->cgpassmgr); in create_pass_manager() 144 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 | 63 LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder; in mask_vec() 97 lp_build_zero_bits(struct gallivm_state *gallivm, int bit_size) in lp_build_zero_bits() argument 100 return LLVMConstInt(LLVMInt64TypeInContext(gallivm->context), 0, 0); in lp_build_zero_bits() 102 return LLVMConstInt(LLVMInt16TypeInContext(gallivm->context), 0, 0); in lp_build_zero_bits() 104 return LLVMConstInt(LLVMInt8TypeInContext(gallivm->context), 0, 0); in lp_build_zero_bits() 106 return lp_build_const_int32(gallivm, 0); in lp_build_zero_bits() 115 struct gallivm_state *gallivm = bld_base->base.gallivm; in emit_fetch_64bit() local 116 LLVMBuilderRef builder = gallivm->builder; in emit_fetch_64bit() 125 shuffles[i] = lp_build_const_int32(gallivm, i / 2); in emit_fetch_64bit() 126 shuffles[i + 1] = lp_build_const_int32(gallivm, i / 2 + bld_base->base.type.length); in emit_fetch_64bit() [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_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_gather.c | 49 lp_build_gather_elem_ptr(struct gallivm_state *gallivm, in lp_build_gather_elem_ptr() argument 58 ASSERTED LLVMTypeRef element_type = LLVMInt8TypeInContext(gallivm->context); in lp_build_gather_elem_ptr() 65 LLVMValueRef index = lp_build_const_int32(gallivm, i); in lp_build_gather_elem_ptr() 66 offset = LLVMBuildExtractElement(gallivm->builder, offsets, index, ""); in lp_build_gather_elem_ptr() 69 ptr = LLVMBuildGEP2(gallivm->builder, element_type, base_ptr, &offset, 1, ""); in lp_build_gather_elem_ptr() 81 lp_build_gather_elem(struct gallivm_state *gallivm, in lp_build_gather_elem() argument 91 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_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_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_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() 118 res = lp_build_broadcast(gallivm, in lp_build_extract_broadcast() 119 lp_build_vec_type(gallivm, dst_type), in lp_build_extract_broadcast() 128 shuffle = lp_build_broadcast(gallivm, in lp_build_extract_broadcast() 131 res = LLVMBuildShuffleVector(gallivm->builder, vector, in lp_build_extract_broadcast() [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_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_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_const.c | 222 lp_build_undef(struct gallivm_state *gallivm, struct lp_type type) in lp_build_undef() argument 224 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_undef() 230 lp_build_zero(struct gallivm_state *gallivm, struct lp_type type) in lp_build_zero() argument 234 return lp_build_const_float(gallivm, 0.0); in lp_build_zero() 236 return LLVMConstInt(LLVMIntTypeInContext(gallivm->context, type.width), 0, 0); in lp_build_zero() 238 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_zero() 245 lp_build_one(struct gallivm_state *gallivm, struct lp_type type) in lp_build_one() argument 252 elem_type = lp_build_elem_type(gallivm, type); in lp_build_one() 267 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_one() 294 lp_build_const_elem(struct gallivm_state *gallivm, in lp_build_const_elem() argument [all …]
|
D | lp_bld_arit.c | 179 min = lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_min_simple() 185 return lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_min_simple() 196 cond = LLVMBuildXor(bld->gallivm->builder, cond, isnan, ""); in lp_build_min_simple() 327 max = lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_max_simple() 333 return lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_max_simple() 344 cond = LLVMBuildXor(bld->gallivm->builder, cond, isnan, ""); in lp_build_max_simple() 377 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_comp() 409 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_add() 461 lp_build_vec_type(bld->gallivm, bld->type), a, b); in lp_build_add() 467 LLVMValueRef max_val = lp_build_const_int_vec(bld->gallivm, type, sign - 1); in lp_build_add() [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 …]
|
/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 | 88 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() 113 emit_constant_coef4(struct gallivm_state *gallivm, in emit_constant_coef4() argument 118 store_coef(gallivm, args, slot, vert, args->bld.zero, args->bld.zero); in emit_constant_coef4() 127 emit_facing_coef(struct gallivm_state *gallivm, in emit_facing_coef() argument 131 LLVMBuilderRef builder = gallivm->builder; in emit_facing_coef() 132 LLVMTypeRef float_type = LLVMFloatTypeInContext(gallivm->context); in emit_facing_coef() 145 lp_build_const_float(gallivm, 2.0), in emit_facing_coef() 147 lp_build_const_float(gallivm, -1.0), in emit_facing_coef() [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 | 113 struct gallivm_state *gallivm, in lp_llvm_texture_member() argument 121 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], in lp_llvm_texture_member() 136 LLVMBuildICmp(gallivm->builder, LLVMIntULT, in lp_llvm_texture_member() 138 lp_build_const_int32(gallivm, in lp_llvm_texture_member() 140 indices[2] = LLVMBuildSelect(gallivm->builder, cond, indices[2], in lp_llvm_texture_member() 141 lp_build_const_int32(gallivm, in lp_llvm_texture_member() [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_state_fs.c | 119 load_unswizzled_block(struct gallivm_state *gallivm, 222 generate_quad_mask(struct gallivm_state *gallivm, in generate_quad_mask() argument 228 LLVMBuilderRef builder = gallivm->builder; in generate_quad_mask() 229 LLVMTypeRef i32t = LLVMInt32TypeInContext(gallivm->context); in generate_quad_mask() 265 lp_build_const_int64(gallivm, 16 * sample), ""); in generate_quad_mask() 268 lp_build_const_int32(gallivm, 0xffff), ""); in generate_quad_mask() 275 mask = lp_build_broadcast(gallivm, in generate_quad_mask() 276 lp_build_vec_type(gallivm, mask_type), in generate_quad_mask() 292 mask = lp_build_compare(gallivm, in generate_quad_mask() 326 struct gallivm_state *gallivm, in lp_llvm_viewport() argument [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_llvm.c | 114 create_jit_dvbuffer_type(struct gallivm_state *gallivm, in create_jit_dvbuffer_type() argument 117 LLVMTargetDataRef target = gallivm->target; in create_jit_dvbuffer_type() 120 LLVMTypeRef int32_type = LLVMInt32TypeInContext(gallivm->context); in create_jit_dvbuffer_type() 123 LLVMPointerType(LLVMIntTypeInContext(gallivm->context, 8), 0); in create_jit_dvbuffer_type() 126 dvbuffer_type = LLVMStructTypeInContext(gallivm->context, elem_types, in create_jit_dvbuffer_type() 144 create_jit_texture_type(struct gallivm_state *gallivm, const char *struct_name) in create_jit_texture_type() argument 146 LLVMTargetDataRef target = gallivm->target; in create_jit_texture_type() 149 LLVMTypeRef int32_type = LLVMInt32TypeInContext(gallivm->context); in create_jit_texture_type() 159 LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0); in create_jit_texture_type() 165 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 …]
|