Home
last modified time | relevance | path

Searched refs:lp_build_const_int_vec (Results 1 – 25 of 25) 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_s3tc.c361 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(gallivm, type, 0x00f800f8); in color_expand_565_to_8888()
[all …]
Dlp_bld_format_soa.c148 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(gallivm, type, chan_mask); in lp_build_insert_soa_chan()
[all …]
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()
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()
Dlp_bld_arit.c504 LLVMValueRef max_val = lp_build_const_int_vec(bld->gallivm, type, sign - 1); in lp_build_add()
505 LLVMValueRef min_val = lp_build_const_int_vec(bld->gallivm, type, sign); in lp_build_add()
828 LLVMValueRef max_val = lp_build_const_int_vec(bld->gallivm, type, sign - 1); in lp_build_sub()
829 LLVMValueRef min_val = lp_build_const_int_vec(bld->gallivm, type, sign); in lp_build_sub()
953 half = lp_build_const_int_vec(gallivm, wide_type, 1LL << (n - 1)); in lp_build_mul_norm()
1011 shift = lp_build_const_int_vec(bld->gallivm, type, type.width/2); in lp_build_mul()
1280 … factor = lp_build_const_int_vec(bld->gallivm, bld->type, (unsigned long long)shift << mantissa); in lp_build_mul_imm()
1440 low_bits = lp_build_const_int_vec(bld->gallivm, bld->type, (1 << half_width) - 1); in lp_build_lerp_simple()
1818 mask = lp_build_const_int_vec(bld->gallivm, type, maskBit); in lp_build_sgn()
1858 LLVMValueRef shift = lp_build_const_int_vec(bld->gallivm, type, type.width - 1); in lp_build_set_sign()
[all …]
Dlp_bld_nir_soa.c161 lp_build_const_int_vec(uint_bld->gallivm, uint_bld->type, chan_index); in get_soa_array_offsets()
163 lp_build_const_int_vec(gallivm, uint_bld->type, uint_bld->type.length); in get_soa_array_offsets()
167 …index_vec = lp_build_mul(uint_bld, indirect_index, lp_build_const_int_vec(uint_bld->gallivm, uint_… in get_soa_array_offsets()
369 …izzle_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, b… in emit_load_var()
372 …ttrib_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, b… in emit_load_var()
408 …izzle_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, b… in emit_load_var()
411 …ttrib_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, b… in emit_load_var()
428 …ttrib_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, b… in emit_load_var()
486 …ttrib_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm, b… in emit_load_var()
566 …swizzle_index_val = lp_build_add(&bld_base->uint_bld, indir_index, lp_build_const_int_vec(gallivm,… in emit_store_tcs_chan()
[all …]
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()
280 lp_build_const_int_vec(bld->gallivm, bld->type, -1), result, ""); in lp_build_cttz()
Dlp_bld_sample.c704 LLVMValueRef one = lp_build_const_int_vec(bld->gallivm, i_type, 1); in lp_build_ilog2_sqrt()
1174 const127 = lp_build_const_int_vec(bld->gallivm, bld->type, 127); in lp_build_minify()
1175 const23 = lp_build_const_int_vec(bld->gallivm, bld->type, 23); in lp_build_minify()
1536 LLVMValueRef c2 = lp_build_const_int_vec(gallivm, ivec_bld->type, 2); in lp_build_cube_new_coords()
1537 LLVMValueRef c3 = lp_build_const_int_vec(gallivm, ivec_bld->type, 3); in lp_build_cube_new_coords()
1538 LLVMValueRef c4 = lp_build_const_int_vec(gallivm, ivec_bld->type, 4); in lp_build_cube_new_coords()
1539 LLVMValueRef c5 = lp_build_const_int_vec(gallivm, ivec_bld->type, 5); in lp_build_cube_new_coords()
1692 LLVMValueRef signmask = lp_build_const_int_vec(gallivm, intctype, in lp_build_cube_lookup()
1694 LLVMValueRef signshift = lp_build_const_int_vec(gallivm, intctype, in lp_build_cube_lookup()
1696 LLVMValueRef facex = lp_build_const_int_vec(gallivm, intctype, PIPE_TEX_FACE_POS_X); in lp_build_cube_lookup()
[all …]
Dlp_bld_conv.c292 lp_build_const_int_vec(gallivm, src_type, mask), ""); in lp_build_clamped_float_to_unsigned_norm()
351 lp_build_const_int_vec(gallivm, src_type, in lp_build_clamped_float_to_unsigned_norm()
361 lp_build_const_int_vec(gallivm, src_type, rshift), in lp_build_clamped_float_to_unsigned_norm()
434 lp_build_const_int_vec(gallivm, dst_type, shift), ""); in lp_build_unsigned_norm_to_float()
665 const_max = lp_build_const_int_vec(gallivm, src_type, 255); in lp_build_conv()
758 const_max = lp_build_const_int_vec(gallivm, src_type, 255); in lp_build_conv()
Dlp_bld_sample_aos.c170 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()
820 i32_c128 = lp_build_const_int_vec(bld->gallivm, i32.type, -128); in lp_build_sample_image_linear()
832 i32_c8 = lp_build_const_int_vec(bld->gallivm, i32.type, 8); in lp_build_sample_image_linear()
851 i32_c255 = lp_build_const_int_vec(bld->gallivm, i32.type, 255); in lp_build_sample_image_linear()
Dlp_bld_const.h98 lp_build_const_int_vec(struct gallivm_state *gallivm,
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_nir.c330lp_build_const_int_vec(bld_base->base.gallivm, bld_base->base.type, 1), ""); in emit_b2i()
468 …div_mask = LLVMBuildAnd(builder, div_mask, lp_build_const_int_vec(gallivm, int_bld->type, 0x7fffff… in do_int_divide()
514 …LLVMBuildBitCast(builder, lp_build_const_int_vec(gallivm, bld_base->uint_bld.type, 0x38800000), bl… in do_quantize_to_f16()
809 …src[1] = lp_build_and(uint_bld, src[1], lp_build_const_int_vec(gallivm, uint_bld->type, (src_bit_s… in do_alu_action()
820 …src[1] = lp_build_and(uint_bld, src[1], lp_build_const_int_vec(gallivm, uint_bld->type, (src_bit_s… in do_alu_action()
891 …result = lp_build_sub(uint_bld, lp_build_const_int_vec(gallivm, uint_bld->type, src_bit_size[0] - … in do_alu_action()
925 …src[1] = lp_build_and(uint_bld, src[1], lp_build_const_int_vec(gallivm, uint_bld->type, (src_bit_s… in do_alu_action()
1000 …result[i] = lp_build_const_int_vec(bld_base->base.gallivm, int_bld->type, instr->def.bit_size == 3… in visit_load_const()
1053 …LLVMValueRef array_off = lp_build_mul(&bld_base->uint_bld, lp_build_const_int_vec(bld_base->base.g… in get_deref_offset()
1069lp_build_const_int_vec(bld_base->base.gallivm, bld_base->uint_bld.type, const_offset), in get_deref_offset()
Dlp_bld_pack.c425 …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()
Dlp_bld_format_srgb.c360 shift_val = lp_build_const_int_vec(gallivm, int32_type, ls); in lp_build_float_to_srgb_packed()
Dlp_bld_tgsi_soa.c688 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()
3489 lp_build_const_int_vec(gallivm, uint_bld->type, chan_index)); in load_emit()
3513 …LLVMValueRef loop_index = lp_build_add(uint_bld, index, lp_build_const_int_vec(gallivm, uint_bld->… in load_emit()
3632 …LLVMValueRef loop_index = lp_build_add(uint_bld, index, lp_build_const_int_vec(gallivm, uint_bld->… in store_emit()
3815 …index = lp_build_add(uint_bld, index, lp_build_const_int_vec(gallivm, uint_bld->type, emit_data->c… in atomic_emit()
[all …]
Dlp_bld_gather.c559 lp_build_const_int_vec(gallivm, res_type, sv), ""); in lp_build_gather()
Dlp_bld_sample_soa.c2106 LLVMValueRef six = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, 6); in lp_build_sample_common()
2297 min_clamp = lp_build_const_int_vec(gallivm, vec4_type, in lp_build_clamp_border_color()
2299 max_clamp = lp_build_const_int_vec(gallivm, vec4_type, in lp_build_clamp_border_color()
2325 max_clamp = lp_build_const_int_vec(gallivm, vec4_type, in lp_build_clamp_border_color()
4083 …cond = LLVMBuildICmp(gallivm->builder, LLVMIntNE, should_store_mask, lp_build_const_int_vec(galliv… in lp_build_do_atomic_soa()
/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()
941 z_bitmask = lp_build_const_int_vec(gallivm, z_type, z_mask); in lp_build_depth_stencil_test()
948 LLVMValueRef shift = lp_build_const_int_vec(gallivm, z_type, z_shift); in lp_build_depth_stencil_test()
959 LLVMValueRef shift = lp_build_const_int_vec(gallivm, s_type, s_shift); in lp_build_depth_stencil_test()
965 LLVMValueRef mask = lp_build_const_int_vec(gallivm, s_type, s_mask); in lp_build_depth_stencil_test()
1062 LLVMValueRef shift = lp_build_const_int_vec(gallivm, z_src_type, in lp_build_depth_stencil_test()
[all …]
Dlp_bld_interp.c453 …indir_index = LLVMBuildAdd(builder, indir_index, lp_build_const_int_vec(gallivm, coeff_bld->type, … in lp_build_interp_soa_indirect()
454 …LLVMValueRef index = LLVMBuildMul(builder, indir_index, lp_build_const_int_vec(gallivm, coeff_bld-… 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… in lp_build_interp_soa()
553 …LLVMValueRef y_val_idx = LLVMBuildAdd(gallivm->builder, x_val_idx, lp_build_const_int_vec(gallivm,… in lp_build_interp_soa()
Dlp_state_fs.c711 sample_mask_in = lp_build_const_int_vec(gallivm, type, 0); in generate_fs_loop()
722 …LLVMValueRef mask_in = LLVMBuildAnd(builder, s_mask, lp_build_const_int_vec(gallivm, type, (1 << s… in generate_fs_loop()
726 sample_mask_in = lp_build_const_int_vec(gallivm, type, 1); in generate_fs_loop()
731 …LLVMValueRef mask_in = LLVMBuildAnd(builder, mask_val, lp_build_const_int_vec(gallivm, type, 1), "… in generate_fs_loop()
889 …epth_mask_in = LLVMBuildAnd(builder, lp_build_mask_value(&mask), lp_build_const_int_vec(gallivm, t… in generate_fs_loop()
1105 …LLVMValueRef cmp = LLVMBuildICmp(builder, LLVMIntNE, smask_bit, lp_build_const_int_vec(gallivm, in… in generate_fs_loop()
1144 LLVMValueRef s_max_mask = lp_build_const_int_vec(gallivm, int_type, 255); in generate_fs_loop()
1667 lp_build_const_int_vec(gallivm, src_type, delta_bits), in scale_bits()
1684 lp_build_const_int_vec(gallivm, src_type, dst_bits), in scale_bits()
1690 lp_build_const_int_vec(gallivm, src_type, (1LL << dst_bits) - 1), in scale_bits()
[all …]
Dlp_state_cs.c359 LLVMValueRef full_mask_val = lp_build_const_int_vec(gallivm, cs_type, ~0); in generate_compute()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c1265 val = lp_build_const_int_vec(gallivm, lp_int_type(soa_type), in store_aos_array()
1519 mask = lp_build_const_int_vec(gallivm, i32_type, 0); in generate_clipmask()
1520 temp = lp_build_const_int_vec(gallivm, i32_type, 0); in generate_clipmask()
1522 shift = lp_build_const_int_vec(gallivm, i32_type, 1); /* 1 1 1 1 */ in generate_clipmask()
1583 temp = lp_build_const_int_vec(gallivm, i32_type, 16); in generate_clipmask()
1629 temp = lp_build_const_int_vec(gallivm, i32_type, 1LL << plane_idx); in generate_clipmask()
1662 temp = lp_build_const_int_vec(gallivm, i32_type, 1LL << plane_idx); in generate_clipmask()
1677 temp = lp_build_const_int_vec(gallivm, i32_type, in generate_clipmask()
1710 LLVMValueRef edge = lp_build_const_int_vec(gallivm, bldivec.type, in clipmask_booli8()
1795 LLVMValueRef clipmask = lp_build_const_int_vec(gallivm, in draw_gs_llvm_emit_vertex()
[all …]