Home
last modified time | relevance | path

Searched refs:lp_build_const_int_vec (Results 1 – 21 of 21) sorted by relevance

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_yuv.c99 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()
119 *v = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, type, 16), ""); in uyvy_to_yuv_soa()
121 *u = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, type, 24), ""); in uyvy_to_yuv_soa()
122 *v = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, type, 8), ""); in uyvy_to_yuv_soa()
[all …]
Dlp_bld_format_float.c95 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()
199 mask = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat()
211 mask = lp_build_const_int_vec(gallivm, i32_type, 0x80000000); in lp_build_float_to_smallfloat()
212 shift = lp_build_const_int_vec(gallivm, i32_type, 8 - exponent_bits); in lp_build_float_to_smallfloat()
220 shift = lp_build_const_int_vec(gallivm, i32_type, 23 - exponent_start); in lp_build_float_to_smallfloat()
224 shift = lp_build_const_int_vec(gallivm, i32_type, exponent_start - 23); in lp_build_float_to_smallfloat()
[all …]
Dlp_bld_format_cached.c293 lp_build_const_int_vec(gallivm, type, low_bit), ""); in lp_build_fetch_cached_texels()
297 lp_build_const_int_vec(gallivm, type, 2*log2size), ""); in lp_build_fetch_cached_texels()
300 lp_build_const_int_vec(gallivm, type, log2size), ""); in lp_build_fetch_cached_texels()
303 hash_mask = lp_build_const_int_vec(gallivm, type, LP_BUILD_FORMAT_CACHE_SIZE - 1); in lp_build_fetch_cached_texels()
305 ij_index = LLVMBuildShl(builder, i, lp_build_const_int_vec(gallivm, type, 2), ""); in lp_build_fetch_cached_texels()
308 lp_build_const_int_vec(gallivm, type, 4), ""); in lp_build_fetch_cached_texels()
Dlp_bld_format_soa.c146 lp_build_const_int_vec(gallivm, type, start), ""); in lp_build_extract_soa_chan()
155 lp_build_const_int_vec(gallivm, type, mask), ""); in lp_build_extract_soa_chan()
187 LLVMValueRef bits_val = lp_build_const_int_vec(gallivm, type, bits); in lp_build_extract_soa_chan()
196 LLVMValueRef bits_val = lp_build_const_int_vec(gallivm, type, bits); in lp_build_extract_soa_chan()
234 lp_build_const_int_vec(gallivm, type, start), ""); in lp_build_extract_soa_chan()
359 LLVMValueRef mask = lp_build_const_int_vec(gallivm, dst_type, 0xff); in lp_build_rgba8_to_fi32_soa()
380 lp_build_const_int_vec(gallivm, dst_type, start), ""); in lp_build_rgba8_to_fi32_soa()
714 LLVMValueRef s_offset = lp_build_const_int_vec(gallivm, type, 4); in lp_build_fetch_rgba_soa()
719 lp_build_const_int_vec(gallivm, type, mask), ""); in lp_build_fetch_rgba_soa()
Dlp_bld_swizzle.c232 …tmp = LLVMBuildShl(builder, a, lp_build_const_int_vec(bld->gallivm, type2, shift * type.width), ""… in lp_build_swizzle_scalar_aos()
234 …tmp = LLVMBuildLShr(builder, a, lp_build_const_int_vec(bld->gallivm, type2, -shift * type.width), … in lp_build_swizzle_scalar_aos()
301 … tmp = LLVMBuildShl(builder, a, lp_build_const_int_vec(bld->gallivm, type4, shift*type.width), ""); in lp_build_swizzle_scalar_aos()
303 …tmp = LLVMBuildLShr(builder, a, lp_build_const_int_vec(bld->gallivm, type4, -shift*type.width), ""… in lp_build_swizzle_scalar_aos()
541 lp_build_const_int_vec(bld->gallivm, type4, mask), ""); in lp_build_swizzle_aos()
544lp_build_const_int_vec(bld->gallivm, type4, shift*type.width), ""); in lp_build_swizzle_aos()
547lp_build_const_int_vec(bld->gallivm, type4, -shift*type.width), ""); in lp_build_swizzle_aos()
Dlp_bld_format_aos.c167 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()
564 lp_build_const_int_vec(gallivm, conv_type, sa), in lp_build_fetch_rgba_aos()
568 lp_build_const_int_vec(gallivm, conv_type, mask), in lp_build_fetch_rgba_aos()
584 rgba[j] = lp_build_const_int_vec(gallivm, conv_type, (1 << type.width) - 1); in lp_build_fetch_rgba_aos()
592 lp_build_const_int_vec(gallivm, conv_type, in lp_build_fetch_rgba_aos()
Dlp_bld_arit.c588 LLVMValueRef max_val = lp_build_const_int_vec(bld->gallivm, type, sign - 1); in lp_build_add()
589 LLVMValueRef min_val = lp_build_const_int_vec(bld->gallivm, type, sign); in lp_build_add()
889 LLVMValueRef max_val = lp_build_const_int_vec(bld->gallivm, type, sign - 1); in lp_build_sub()
890 LLVMValueRef min_val = lp_build_const_int_vec(bld->gallivm, type, sign); in lp_build_sub()
1004 half = lp_build_const_int_vec(gallivm, wide_type, 1LL << (n - 1)); in lp_build_mul_norm()
1062 shift = lp_build_const_int_vec(bld->gallivm, type, type.width/2); in lp_build_mul()
1323 … factor = lp_build_const_int_vec(bld->gallivm, bld->type, (unsigned long long)shift << mantissa); in lp_build_mul_imm()
1481 low_bits = lp_build_const_int_vec(bld->gallivm, bld->type, (1 << half_width) - 1); in lp_build_lerp_simple()
1788 … LLVMValueRef mask = lp_build_const_int_vec(bld->gallivm, type, ((unsigned long long) absMask)); in lp_build_abs()
1875 mask = lp_build_const_int_vec(bld->gallivm, type, maskBit); in lp_build_sgn()
[all …]
Dlp_bld_sample.c669 LLVMValueRef one = lp_build_const_int_vec(bld->gallivm, i_type, 1); in lp_build_ilog2_sqrt()
1127 const127 = lp_build_const_int_vec(bld->gallivm, bld->type, 127); in lp_build_minify()
1128 const23 = lp_build_const_int_vec(bld->gallivm, bld->type, 23); in lp_build_minify()
1489 LLVMValueRef c2 = lp_build_const_int_vec(gallivm, ivec_bld->type, 2); in lp_build_cube_new_coords()
1490 LLVMValueRef c3 = lp_build_const_int_vec(gallivm, ivec_bld->type, 3); in lp_build_cube_new_coords()
1491 LLVMValueRef c4 = lp_build_const_int_vec(gallivm, ivec_bld->type, 4); in lp_build_cube_new_coords()
1492 LLVMValueRef c5 = lp_build_const_int_vec(gallivm, ivec_bld->type, 5); in lp_build_cube_new_coords()
1645 LLVMValueRef signmask = lp_build_const_int_vec(gallivm, intctype, in lp_build_cube_lookup()
1647 LLVMValueRef signshift = lp_build_const_int_vec(gallivm, intctype, in lp_build_cube_lookup()
1649 LLVMValueRef facex = lp_build_const_int_vec(gallivm, intctype, PIPE_TEX_FACE_POS_X); in lp_build_cube_lookup()
[all …]
Dlp_bld_conv.c278 lp_build_const_int_vec(gallivm, src_type, mask), ""); in lp_build_clamped_float_to_unsigned_norm()
334 lp_build_const_int_vec(gallivm, src_type, in lp_build_clamped_float_to_unsigned_norm()
344 lp_build_const_int_vec(gallivm, src_type, rshift), in lp_build_clamped_float_to_unsigned_norm()
417 lp_build_const_int_vec(gallivm, dst_type, shift), ""); in lp_build_unsigned_norm_to_float()
646 const_max = lp_build_const_int_vec(gallivm, src_type, 255); in lp_build_conv()
739 const_max = lp_build_const_int_vec(gallivm, src_type, 255); in lp_build_conv()
Dlp_bld_bitarit.c226 LLVMValueRef b = lp_build_const_int_vec(bld->gallivm, bld->type, imm); in lp_build_shl_imm()
239 LLVMValueRef b = lp_build_const_int_vec(bld->gallivm, bld->type, imm); in lp_build_shr_imm()
Dlp_bld_const.c279 vec = LLVMConstLShr(vec, lp_build_const_int_vec(type, 1)); in lp_build_one()
342 lp_build_const_int_vec(struct gallivm_state *gallivm, struct lp_type type, in lp_build_const_int_vec() function
Dlp_bld_const.h98 lp_build_const_int_vec(struct gallivm_state *gallivm,
Dlp_bld_sample_aos.c232 i32_c128 = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, -128); in lp_build_coord_repeat_npot_linear_int()
236 i32_c255 = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, 255); in lp_build_coord_repeat_npot_linear_int()
240 i32_c8 = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, 8); in lp_build_coord_repeat_npot_linear_int()
1095 i32_c128 = lp_build_const_int_vec(bld->gallivm, i32.type, -128); in lp_build_sample_image_linear()
1107 i32_c8 = lp_build_const_int_vec(bld->gallivm, i32.type, 8); in lp_build_sample_image_linear()
1126 i32_c255 = lp_build_const_int_vec(bld->gallivm, i32.type, 255); in lp_build_sample_image_linear()
Dlp_bld_pack.c389 …msb = LLVMBuildAShr(builder, src, lp_build_const_int_vec(gallivm, src_type, src_type.width - 1), "… in lp_build_unpack2()
443 lp_build_const_int_vec(gallivm, src_type, src_type.width - 1), ""); in lp_build_unpack2_native()
769 LLVMValueRef dst_max = lp_build_const_int_vec(gallivm, src_type, in lp_build_packs2()
Dlp_bld_format_srgb.c359 shift_val = lp_build_const_int_vec(gallivm, int32_type, ls); in lp_build_float_to_srgb_packed()
Dlp_bld_gather.c533 lp_build_const_int_vec(gallivm, res_type, sv), ""); in lp_build_gather()
Dlp_bld_tgsi_soa.c1106 base = lp_build_const_int_vec(bld->bld_base.base.gallivm, uint_bld->type, reg_index); in get_indirect_index()
1140 max_index = lp_build_const_int_vec(bld->bld_base.base.gallivm, in get_indirect_index()
1194 lp_build_const_int_vec(uint_bld->gallivm, uint_bld->type, chan_index); in get_soa_array_offsets()
1196 lp_build_const_int_vec(gallivm, uint_bld->type, uint_bld->type.length); in get_soa_array_offsets()
1250 lp_build_const_int_vec(gallivm, uint_bld->type, swizzle); in emit_fetch_constant()
1275 swizzle_vec2 = lp_build_const_int_vec(gallivm, uint_bld->type, swizzle + 1); in emit_fetch_constant()
4050 lp_build_const_int_vec(gallivm, bld.bld_base.int_bld.type, in lp_build_tgsi_soa()
Dlp_bld_sample_soa.c1833 LLVMValueRef six = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, 6); in lp_build_sample_common()
1995 min_clamp = lp_build_const_int_vec(gallivm, vec4_type, in lp_build_clamp_border_color()
1997 max_clamp = lp_build_const_int_vec(gallivm, vec4_type, in lp_build_clamp_border_color()
2023 max_clamp = lp_build_const_int_vec(gallivm, vec4_type, in lp_build_clamp_border_color()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_depth.c114 LLVMValueRef valuemask = lp_build_const_int_vec(bld->gallivm, type, stencil->valuemask); in lp_build_stencil_test_single()
177 LLVMValueRef max = lp_build_const_int_vec(bld->gallivm, type, 0xff); in lp_build_stencil_op_single()
272 LLVMValueRef writemask = lp_build_const_int_vec(bld->gallivm, bld->type, in lp_build_stencil_op()
275 LLVMValueRef back_writemask = lp_build_const_int_vec(bld->gallivm, bld->type, in lp_build_stencil_op()
432 LLVMValueRef countmask = lp_build_const_int_vec(gallivm, type, 1); in lp_build_occlusion_count()
931 z_bitmask = lp_build_const_int_vec(gallivm, z_type, z_mask); in lp_build_depth_stencil_test()
938 LLVMValueRef shift = lp_build_const_int_vec(gallivm, z_type, z_shift); in lp_build_depth_stencil_test()
949 LLVMValueRef shift = lp_build_const_int_vec(gallivm, s_type, s_shift); in lp_build_depth_stencil_test()
955 LLVMValueRef mask = lp_build_const_int_vec(gallivm, s_type, s_mask); in lp_build_depth_stencil_test()
1052 LLVMValueRef shift = lp_build_const_int_vec(gallivm, z_src_type, in lp_build_depth_stencil_test()
[all …]
Dlp_state_fs.c540 LLVMValueRef s_max_mask = lp_build_const_int_vec(gallivm, int_type, 255); in generate_fs_loop()
1132 lp_build_const_int_vec(gallivm, src_type, delta_bits), in scale_bits()
1149 lp_build_const_int_vec(gallivm, src_type, dst_bits), in scale_bits()
1155 lp_build_const_int_vec(gallivm, src_type, (1LL << dst_bits) - 1), in scale_bits()
1166lp_build_const_int_vec(gallivm, src_type, (1LL << (delta_bits - 1))), in scale_bits()
1179 lp_build_const_int_vec(gallivm, src_type, delta_bits), in scale_bits()
1190 lp_build_const_int_vec(gallivm, src_type, db), in scale_bits()
1197lp_build_const_int_vec(gallivm, src_type, src_bits - db), in scale_bits()
1206 LLVMValueRef shuv = lp_build_const_int_vec(gallivm, src_type, n); in scale_bits()
1369 lp_build_const_int_vec(gallivm, src_type, sa), in convert_to_blend_type()
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c912 val = lp_build_const_int_vec(gallivm, lp_int_type(soa_type), in store_aos_array()
1166 mask = lp_build_const_int_vec(gallivm, i32_type, 0); in generate_clipmask()
1167 temp = lp_build_const_int_vec(gallivm, i32_type, 0); in generate_clipmask()
1169 shift = lp_build_const_int_vec(gallivm, i32_type, 1); /* 1 1 1 1 */ in generate_clipmask()
1230 temp = lp_build_const_int_vec(gallivm, i32_type, 16); in generate_clipmask()
1276 temp = lp_build_const_int_vec(gallivm, i32_type, 1LL << plane_idx); in generate_clipmask()
1309 temp = lp_build_const_int_vec(gallivm, i32_type, 1LL << plane_idx); in generate_clipmask()
1324 temp = lp_build_const_int_vec(gallivm, i32_type, in generate_clipmask()
1357 LLVMValueRef edge = lp_build_const_int_vec(gallivm, bldivec.type, in clipmask_booli8()
1441 LLVMValueRef clipmask = lp_build_const_int_vec(gallivm, in draw_gs_llvm_emit_vertex()