/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_format_yuv.c | 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() 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(galliv in uyvy_to_yuv_soa() [all...] |
H A D | lp_bld_format_float.c | 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() 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(galliv in lp_build_float_to_smallfloat() [all...] |
H A D | lp_bld_format_s3tc.c | 361 rgblomask = lp_build_const_int_vec(gallivm, type16, 0x0707); in color_expand2_565_to_8888() 366 r = LLVMBuildLShr(builder, colors, lp_build_const_int_vec(gallivm, type16, 11), ""); in color_expand2_565_to_8888() 367 r = LLVMBuildShl(builder, r, lp_build_const_int_vec(gallivm, type16, 3), ""); in color_expand2_565_to_8888() 368 b = LLVMBuildShl(builder, colors, lp_build_const_int_vec(gallivm, type16, 11), ""); in color_expand2_565_to_8888() 370 rblo = LLVMBuildLShr(builder, rb, lp_build_const_int_vec(gallivm, type16, 5), ""); in color_expand2_565_to_8888() 376 g = LLVMBuildAnd(builder, colors, lp_build_const_int_vec(gallivm, type16, 0x07e0), ""); in color_expand2_565_to_8888() 377 g = LLVMBuildLShr(builder, g, lp_build_const_int_vec(gallivm, type16, 3), ""); in color_expand2_565_to_8888() 378 glo = LLVMBuildLShr(builder, g, lp_build_const_int_vec(gallivm, type16, 6), ""); in color_expand2_565_to_8888() 437 g6mask = lp_build_const_int_vec(gallivm, type, 0x07e0); in color_expand_565_to_8888() 438 rbhimask = lp_build_const_int_vec(galliv in color_expand_565_to_8888() [all...] |
H A D | lp_bld_format_soa.c | 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() 189 LLVMValueRef bits_val = lp_build_const_int_vec(gallivm, type, bits); in lp_build_extract_soa_chan() 198 LLVMValueRef bits_val = lp_build_const_int_vec(gallivm, type, bits); in lp_build_extract_soa_chan() 236 lp_build_const_int_vec(gallivm, type, start), ""); in lp_build_extract_soa_chan() 361 LLVMValueRef mask = lp_build_const_int_vec(gallivm, dst_type, 0xff); in lp_build_rgba8_to_fi32_soa() 382 lp_build_const_int_vec(gallivm, dst_type, start), ""); in lp_build_rgba8_to_fi32_soa() 721 LLVMValueRef s_offset = lp_build_const_int_vec(gallivm, type, 4); in lp_build_fetch_rgba_soa() 726 lp_build_const_int_vec(gallivm, type, mask), ""); in lp_build_fetch_rgba_soa() 900 LLVMValueRef mask_val = lp_build_const_int_vec(galliv in lp_build_insert_soa_chan() [all...] |
H A D | lp_bld_arit.c | 467 LLVMValueRef max_val = lp_build_const_int_vec(bld->gallivm, type, sign - 1); in lp_build_add() 468 LLVMValueRef min_val = lp_build_const_int_vec(bld->gallivm, type, sign); in lp_build_add() 794 lp_build_const_int_vec(bld->gallivm, type, sign - 1); in lp_build_sub() 796 lp_build_const_int_vec(bld->gallivm, type, sign); in lp_build_sub() 920 half = lp_build_const_int_vec(gallivm, wide_type, 1LL << (n - 1)); in lp_build_mul_norm() 977 ? lp_build_const_int_vec(bld->gallivm, type, type.width/2) : NULL; in lp_build_mul() 1232 factor = lp_build_const_int_vec(bld->gallivm, bld->type, (unsigned long long)shift << mantissa); in lp_build_mul_imm() 1343 res = lp_build_and(bld, res, lp_build_const_int_vec(bld->gallivm, bld->type, 0xff)); in lp_build_lerp_simple() 1346 res = lp_build_and(bld, res, lp_build_const_int_vec(bld->gallivm, bld->type, 0xff)); in lp_build_lerp_simple() 1397 low_bits = lp_build_const_int_vec(bl in lp_build_lerp_simple() [all...] |
H A D | lp_bld_swizzle.c | 224 tmp = LLVMBuildShl(builder, a, lp_build_const_int_vec(bld->gallivm, type2, shift * type.width), ""); in lp_build_swizzle_scalar_aos() 226 tmp = LLVMBuildLShr(builder, a, lp_build_const_int_vec(bld->gallivm, type2, -shift * type.width), ""); in lp_build_swizzle_scalar_aos() 290 tmp = LLVMBuildShl(builder, a, lp_build_const_int_vec(bld->gallivm, type4, shift*type.width), ""); in lp_build_swizzle_scalar_aos() 292 tmp = LLVMBuildLShr(builder, a, lp_build_const_int_vec(bld->gallivm, type4, -shift*type.width), ""); in lp_build_swizzle_scalar_aos() 527 lp_build_const_int_vec(bld->gallivm, type4, mask), ""); in lp_build_swizzle_aos() 530 lp_build_const_int_vec(bld->gallivm, type4, shift*type.width), ""); in lp_build_swizzle_aos() 533 lp_build_const_int_vec(bld->gallivm, type4, -shift*type.width), ""); in lp_build_swizzle_aos()
|
H A D | lp_bld_format_aos.c | 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() 567 lp_build_const_int_vec(gallivm, conv_type, sa), in lp_build_fetch_rgba_aos() 571 lp_build_const_int_vec(gallivm, conv_type, mask), in lp_build_fetch_rgba_aos() 587 rgba[j] = lp_build_const_int_vec(gallivm, conv_type, (1 << type.width) - 1); in lp_build_fetch_rgba_aos() 595 lp_build_const_int_vec(gallivm, conv_type, in lp_build_fetch_rgba_aos()
|
H A D | lp_bld_bitarit.c | 226 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() 280 lp_build_const_int_vec(bld->gallivm, bld->type, -1), result, ""); in lp_build_cttz()
|
H A D | lp_bld_conv.c | 303 lp_build_const_int_vec(gallivm, src_type, mask), ""); in lp_build_clamped_float_to_unsigned_norm() 362 lp_build_const_int_vec(gallivm, src_type, in lp_build_clamped_float_to_unsigned_norm() 372 lp_build_const_int_vec(gallivm, src_type, rshift), in lp_build_clamped_float_to_unsigned_norm() 445 lp_build_const_int_vec(gallivm, dst_type, shift), ""); in lp_build_unsigned_norm_to_float() 676 const_max = lp_build_const_int_vec(gallivm, src_type, 255); in lp_build_conv() 769 const_max = lp_build_const_int_vec(gallivm, src_type, 255); in lp_build_conv()
|
H A D | lp_bld_sample.c | 802 LLVMValueRef one = lp_build_const_int_vec(bld->gallivm, i_type, 1); in lp_build_ilog2_sqrt() 1280 const127 = lp_build_const_int_vec(bld->gallivm, bld->type, 127); in lp_build_minify() 1281 const23 = lp_build_const_int_vec(bld->gallivm, bld->type, 23); in lp_build_minify() 1635 LLVMValueRef c2 = lp_build_const_int_vec(gallivm, ivec_bld->type, 2); in lp_build_cube_new_coords() 1636 LLVMValueRef c3 = lp_build_const_int_vec(gallivm, ivec_bld->type, 3); in lp_build_cube_new_coords() 1637 LLVMValueRef c4 = lp_build_const_int_vec(gallivm, ivec_bld->type, 4); in lp_build_cube_new_coords() 1638 LLVMValueRef c5 = lp_build_const_int_vec(gallivm, ivec_bld->type, 5); in lp_build_cube_new_coords() 1794 LLVMValueRef signmask = lp_build_const_int_vec(gallivm, intctype, in lp_build_cube_lookup() 1796 LLVMValueRef signshift = lp_build_const_int_vec(gallivm, intctype, in lp_build_cube_lookup() 1798 LLVMValueRef facex = lp_build_const_int_vec(galliv in lp_build_cube_lookup() [all...] |
H A D | lp_bld_nir_soa.c | 197 lp_build_const_int_vec(uint_bld->gallivm, uint_bld->type, chan_index); in get_soa_array_offsets() 199 lp_build_const_int_vec(gallivm, uint_bld->type, uint_bld->type.length); in get_soa_array_offsets() 203 index_vec = lp_build_mul(uint_bld, indirect_index, lp_build_const_int_vec(uint_bld->gallivm, uint_bld->type, num_components)); in get_soa_array_offsets() 406 swizzle_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, bld_base->uint_bld.type, idx)); in emit_load_var() 409 attrib_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, bld_base->uint_bld.type, comp_loc)); in emit_load_var() 445 swizzle_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, bld_base->uint_bld.type, idx)); in emit_load_var() 448 attrib_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, bld_base->uint_bld.type, comp_loc)); in emit_load_var() 465 LLVMValueRef attrib_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, bld_base->uint_bld.type, comp_loc)); in emit_load_var() 523 attrib_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, bld_base->uint_bld.type, var->data.driver_location)); in emit_load_var() 603 swizzle_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(galliv in emit_store_tcs_chan() [all...] |
H A D | lp_bld_const.c | 274 vec = LLVMConstLShr(vec, lp_build_const_int_vec(type, 1)); in lp_build_one() 335 lp_build_const_int_vec(struct gallivm_state *gallivm, struct lp_type type, in lp_build_const_int_vec() function
|
H A D | lp_bld_sample_aos.c | 170 i32_c128 = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, -128); in lp_build_coord_repeat_npot_linear_int() 174 i32_c255 = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, 255); in lp_build_coord_repeat_npot_linear_int() 178 i32_c8 = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, 8); in lp_build_coord_repeat_npot_linear_int() 812 i32_c128 = lp_build_const_int_vec(bld->gallivm, i32.type, -128); in lp_build_sample_image_linear() 823 i32_c8 = lp_build_const_int_vec(bld->gallivm, i32.type, 8); in lp_build_sample_image_linear() 842 i32_c255 = lp_build_const_int_vec(bld->gallivm, i32.type, 255); in lp_build_sample_image_linear()
|
H A D | lp_bld_const.h | 98 lp_build_const_int_vec(struct gallivm_state *gallivm,
|
H A D | lp_bld_pack.c | 425 msb = LLVMBuildAShr(builder, src, lp_build_const_int_vec(gallivm, src_type, src_type.width - 1), ""); in lp_build_unpack2() 479 lp_build_const_int_vec(gallivm, src_type, src_type.width - 1), ""); in lp_build_unpack2_native() 805 LLVMValueRef dst_max = lp_build_const_int_vec(gallivm, src_type, in lp_build_packs2()
|
H A D | lp_bld_nir.c | 417 lp_build_const_int_vec(bld_base->base.gallivm, in emit_b2i() 581 lp_build_const_int_vec(gallivm, int_bld->type, min_val)); in get_signed_divisor() 584 lp_build_const_int_vec(gallivm, int_bld->type, -1)); in get_signed_divisor() 659 LLVMBuildBitCast(builder, lp_build_const_int_vec(gallivm, bld_base->uint_bld.type, 0x38800000), bld_base->base.vec_type, ""), in do_quantize_to_f16() 1023 src[1] = lp_build_and(uint_bld, src[1], lp_build_const_int_vec(gallivm, uint_bld->type, (src_bit_size[0] - 1))); in do_alu_action() 1034 src[1] = lp_build_and(uint_bld, src[1], lp_build_const_int_vec(gallivm, uint_bld->type, (src_bit_size[0] - 1))); in do_alu_action() 1118 result = lp_build_sub(uint_bld, lp_build_const_int_vec(gallivm, uint_bld->type, src_bit_size[0] - 1), result); in do_alu_action() 1152 src[1] = lp_build_and(uint_bld, src[1], lp_build_const_int_vec(gallivm, uint_bld->type, (src_bit_size[0] - 1))); in do_alu_action() 1358 LLVMValueRef array_off = lp_build_mul(&bld_base->uint_bld, lp_build_const_int_vec(bld_base->base.gallivm, bld_base->base.type, size), in get_deref_offset() 1374 lp_build_const_int_vec(bld_bas in get_deref_offset() [all...] |
H A D | lp_bld_format_srgb.c | 360 shift_val = lp_build_const_int_vec(gallivm, int32_type, ls); in lp_build_float_to_srgb_packed()
|
H A D | lp_bld_tgsi_soa.c | 688 base = lp_build_const_int_vec(bld->bld_base.base.gallivm, uint_bld->type, reg_index); in get_indirect_index() 723 max_index = lp_build_const_int_vec(bld->bld_base.base.gallivm, in get_indirect_index() 776 lp_build_const_int_vec(uint_bld->gallivm, uint_bld->type, chan_index); in get_soa_array_offsets() 778 lp_build_const_int_vec(gallivm, uint_bld->type, uint_bld->type.length); in get_soa_array_offsets() 833 lp_build_const_int_vec(gallivm, uint_bld->type, swizzle); in emit_fetch_constant() 859 swizzle_vec2 = lp_build_const_int_vec(gallivm, uint_bld->type, swizzle_in >> 16); in emit_fetch_constant() 3496 lp_build_const_int_vec(gallivm, uint_bld->type, chan_index)); in load_emit() 3520 LLVMValueRef loop_index = lp_build_add(uint_bld, index, lp_build_const_int_vec(gallivm, uint_bld->type, chan_index)); in load_emit() 3639 LLVMValueRef loop_index = lp_build_add(uint_bld, index, lp_build_const_int_vec(gallivm, uint_bld->type, chan_index)); in store_emit() 3822 index = lp_build_add(uint_bld, index, lp_build_const_int_vec(galliv in atomic_emit() [all...] |
H A D | lp_bld_gather.c | 558 lp_build_const_int_vec(gallivm, res_type, sv), ""); in lp_build_gather()
|
H A D | lp_bld_sample_soa.c | 2366 lp_build_const_int_vec(gallivm, bld->int_coord_bld.type, 0x3ff), ""); in lp_build_sample_aniso() 2370 q = lp_build_and(&bld->int_coord_bld, q, lp_build_const_int_vec(gallivm, bld->int_coord_bld.type, 0x3ff)); in lp_build_sample_aniso() 2566 LLVMValueRef six = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, 6); in lp_build_sample_common() 2772 min_clamp = lp_build_const_int_vec(gallivm, vec4_type, in lp_build_clamp_border_color() 2774 max_clamp = lp_build_const_int_vec(gallivm, vec4_type, in lp_build_clamp_border_color() 2800 max_clamp = lp_build_const_int_vec(gallivm, vec4_type, in lp_build_clamp_border_color() 4600 lp_build_const_int_vec(gallivm, type, 0), ""); in lp_build_do_atomic_soa()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_bld_depth.c | 115 LLVMValueRef valuemask = lp_build_const_int_vec(bld->gallivm, type, stencil->valuemask); in lp_build_stencil_test_single() 178 LLVMValueRef max = lp_build_const_int_vec(bld->gallivm, type, 0xff); in lp_build_stencil_op_single() 274 LLVMValueRef writemask = lp_build_const_int_vec(bld->gallivm, bld->type, in lp_build_stencil_op() 280 lp_build_const_int_vec(bld->gallivm, bld->type, in lp_build_stencil_op() 435 LLVMValueRef countmask = lp_build_const_int_vec(gallivm, type, 1); in lp_build_occlusion_count() 946 z_bitmask = lp_build_const_int_vec(gallivm, z_type, z_mask); in lp_build_depth_stencil_test() 953 LLVMValueRef shift = lp_build_const_int_vec(gallivm, z_type, z_shift); in lp_build_depth_stencil_test() 964 LLVMValueRef shift = lp_build_const_int_vec(gallivm, s_type, s_shift); in lp_build_depth_stencil_test() 970 LLVMValueRef mask = lp_build_const_int_vec(gallivm, s_type, s_mask); in lp_build_depth_stencil_test() 1067 LLVMValueRef shift = lp_build_const_int_vec(galliv in lp_build_depth_stencil_test() [all...] |
H A D | lp_bld_interp.c | 453 indir_index = LLVMBuildAdd(builder, indir_index, lp_build_const_int_vec(gallivm, coeff_bld->type, attrib), ""); in lp_build_interp_soa_indirect() 454 LLVMValueRef index = LLVMBuildMul(builder, indir_index, lp_build_const_int_vec(gallivm, coeff_bld->type, 4), ""); in lp_build_interp_soa_indirect() 455 index = LLVMBuildAdd(builder, index, lp_build_const_int_vec(gallivm, coeff_bld->type, chan), ""); in lp_build_interp_soa_indirect() 458 index = LLVMBuildMul(builder, index, lp_build_const_int_vec(gallivm, coeff_bld->type, 4), ""); in lp_build_interp_soa_indirect() 552 LLVMValueRef x_val_idx = LLVMBuildMul(gallivm->builder, offsets[0], lp_build_const_int_vec(gallivm, bld->coeff_bld.type, 2 * 4), ""); in lp_build_interp_soa() 553 LLVMValueRef y_val_idx = LLVMBuildAdd(gallivm->builder, x_val_idx, lp_build_const_int_vec(gallivm, bld->coeff_bld.type, 4), ""); in lp_build_interp_soa()
|
H A D | lp_state_fs.c | 782 sample_mask_in = lp_build_const_int_vec(gallivm, type, 0); in generate_fs_loop() 793 LLVMValueRef mask_in = LLVMBuildAnd(builder, s_mask, lp_build_const_int_vec(gallivm, type, (1ll << s)), ""); in generate_fs_loop() 797 sample_mask_in = lp_build_const_int_vec(gallivm, type, 1); in generate_fs_loop() 802 LLVMValueRef mask_in = LLVMBuildAnd(builder, mask_val, lp_build_const_int_vec(gallivm, type, 1), ""); in generate_fs_loop() 962 LLVMValueRef post_depth_mask_in = LLVMBuildAnd(builder, lp_build_mask_value(&mask), lp_build_const_int_vec(gallivm, type, 1), ""); in generate_fs_loop() 1231 LLVMValueRef cmp = LLVMBuildICmp(builder, LLVMIntNE, smask_bit, lp_build_const_int_vec(gallivm, int_type, 0), ""); in generate_fs_loop() 1275 LLVMValueRef s_max_mask = lp_build_const_int_vec(gallivm, int_type, 255); in generate_fs_loop() 1346 LLVMValueRef cmp = LLVMBuildICmp(builder, LLVMIntNE, smask_bit, lp_build_const_int_vec(gallivm, int_type, 0), ""); in generate_fs_loop() 1797 lp_build_const_int_vec(gallivm, src_type, delta_bits), in scale_bits() 1814 lp_build_const_int_vec(galliv in scale_bits() [all...] |
H A D | lp_state_cs.c | 409 LLVMValueRef full_mask_val = lp_build_const_int_vec(gallivm, cs_type, ~0); in generate_compute()
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_llvm.c | 1273 val = lp_build_const_int_vec(gallivm, lp_int_type(soa_type), in store_aos_array() 1529 mask = lp_build_const_int_vec(gallivm, i32_type, 0); in generate_clipmask() 1530 temp = lp_build_const_int_vec(gallivm, i32_type, 0); in generate_clipmask() 1532 shift = lp_build_const_int_vec(gallivm, i32_type, 1); /* 1 1 1 1 */ in generate_clipmask() 1595 temp = lp_build_const_int_vec(gallivm, i32_type, 16); in generate_clipmask() 1641 temp = lp_build_const_int_vec(gallivm, i32_type, 1LL << plane_idx); in generate_clipmask() 1665 temp = lp_build_const_int_vec(gallivm, i32_type, 1LL << plane_idx); in generate_clipmask() 1680 temp = lp_build_const_int_vec(gallivm, i32_type, in generate_clipmask() 1713 LLVMValueRef edge = lp_build_const_int_vec(gallivm, bldivec.type, in clipmask_booli8() 1798 LLVMValueRef clipmask = lp_build_const_int_vec(galliv in draw_gs_llvm_emit_vertex() [all...] |