/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_bld_blend_logicop.c | 62 res = LLVMBuildAnd(builder, LLVMBuildNot(builder, src, ""), dst, ""); in lp_build_logicop() 68 res = LLVMBuildAnd(builder, src, LLVMBuildNot(builder, dst, ""), ""); in lp_build_logicop() 77 res = LLVMBuildNot(builder, LLVMBuildAnd(builder, src, dst, ""), ""); in lp_build_logicop() 80 res = LLVMBuildAnd(builder, src, dst, ""); in lp_build_logicop()
|
D | lp_bld_depth.c | 116 stencilRef = LLVMBuildAnd(builder, stencilRef, valuemask, ""); in lp_build_stencil_test_single() 118 stencilVals = LLVMBuildAnd(builder, stencilVals, valuemask, ""); in lp_build_stencil_test_single() 219 res = LLVMBuildAnd(builder, res, max, ""); in lp_build_stencil_op_single() 223 res = LLVMBuildAnd(builder, res, max, ""); in lp_build_stencil_op_single() 227 res = LLVMBuildAnd(builder, res, max, ""); in lp_build_stencil_op_single() 286 mask = LLVMBuildAnd(builder, mask, writemask, ""); in lp_build_stencil_op() 464 LLVMValueRef countv = LLVMBuildAnd(builder, maskvalue, countmask, "countv"); in lp_build_occlusion_count() 556 LLVMValueRef looplsb = LLVMBuildAnd(builder, loop_counter, in lp_build_depth_stencil_load_swizzled() 558 LLVMValueRef loopmsb = LLVMBuildAnd(builder, loop_counter, in lp_build_depth_stencil_load_swizzled() 710 LLVMValueRef looplsb = LLVMBuildAnd(builder, loop_counter, in lp_build_depth_stencil_write_swizzled() [all …]
|
D | lp_state_fs.c | 267 mask_input = LLVMBuildAnd(builder, mask_input, in generate_quad_mask() 287 mask = LLVMBuildAnd(builder, mask, bits_vec, ""); in generate_quad_mask() 423 s_mask = LLVMBuildAnd(builder, s_mask, test, ""); in lp_build_sample_alpha_to_coverage() 558 … LLVMBuildAnd(builder, fs_iface->loop_state->counter, lp_build_const_int32(gallivm, 1), ""), in fs_fb_fetch() 793 …LLVMValueRef mask_in = LLVMBuildAnd(builder, s_mask, lp_build_const_int_vec(gallivm, type, (1ll <<… in generate_fs_loop() 802 …LLVMValueRef mask_in = LLVMBuildAnd(builder, mask_val, lp_build_const_int_vec(gallivm, type, 1), "… in generate_fs_loop() 862 s_mask = LLVMBuildAnd(builder, s_mask, mask_val, ""); in generate_fs_loop() 941 …mask_bit_idx = LLVMBuildAnd(builder, s_mask, lp_build_broadcast(gallivm, int_vec_type, mask_bit_id… in generate_fs_loop() 962 …LLVMValueRef post_depth_mask_in = LLVMBuildAnd(builder, lp_build_mask_value(&mask), lp_build_const… in generate_fs_loop() 993 system_values.sample_mask_in = LLVMBuildAnd(builder, system_values.sample_mask_in, in generate_fs_loop() [all …]
|
D | lp_state_fs_linear_llvm.c | 437 LLVMBuildAnd(builder, width, LLVMConstInt(int32t, 3, 0), ""); in llvmpipe_fs_variant_linear_llvm()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_ir_common.c | 115 tmp = LLVMBuildAnd(builder, in lp_exec_mask_update() 119 mask->exec_mask = LLVMBuildAnd(builder, in lp_exec_mask_update() 127 mask->exec_mask = LLVMBuildAnd(builder, in lp_exec_mask_update() 134 mask->exec_mask = LLVMBuildAnd(builder, in lp_exec_mask_update() 331 icond = LLVMBuildAnd(builder, i1cond, i2cond, ""); in lp_exec_endloop() 368 mask->cond_mask = LLVMBuildAnd(builder, in lp_exec_mask_cond_push() 392 mask->cond_mask = LLVMBuildAnd(builder, in lp_exec_mask_cond_invert() 417 mask->cont_mask = LLVMBuildAnd(builder, in lp_exec_continue() 435 mask->break_mask = LLVMBuildAnd(builder, in lp_exec_break() 461 mask->switch_mask = LLVMBuildAnd(builder, in lp_exec_break()
|
D | lp_bld_format_s3tc.c | 372 rblo = LLVMBuildAnd(builder, rblo, rgblomask, ""); 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() 443 g = LLVMBuildAnd(builder, colors, g6mask, ""); in color_expand_565_to_8888() 446 rgba = LLVMBuildAnd(builder, rgba, rbhimask, ""); in color_expand_565_to_8888() 450 rgblo = LLVMBuildAnd(builder, rgblo, rgblomask, ""); in color_expand_565_to_8888() 548 x_lo = LLVMBuildAnd(builder, x_lo, lp_build_const_int_vec(gallivm, i16_type, 0xff), ""); in lp_build_lerp23() 549 x_hi = LLVMBuildAnd(builder, x_hi, lp_build_const_int_vec(gallivm, i16_type, 0xff), ""); in lp_build_lerp23() 607 col0 = LLVMBuildAnd(builder, colors, lp_build_const_int_vec(gallivm, type, 0x0000ffff), ""); in s3tc_dxt1_full_to_rgba_aos() 718 sel_lo = LLVMBuildAnd(builder, indices, bld32.one, ""); in s3tc_dxt1_full_to_rgba_aos() 722 sel_hi = LLVMBuildAnd(builder, indices, const2, ""); in s3tc_dxt1_full_to_rgba_aos() [all …]
|
D | lp_bld_sample_aos.c | 99 coord = LLVMBuildAnd(builder, coord, length_minus_one, ""); in lp_build_sample_wrap_nearest_int() 175 *weight_i = LLVMBuildAnd(bld->gallivm->builder, *coord0_i, i32_c255, ""); in lp_build_coord_repeat_npot_linear_int() 249 coord0 = LLVMBuildAnd(builder, coord0, length_minus_one, ""); in lp_build_sample_wrap_linear_int() 250 coord1 = LLVMBuildAnd(builder, coord1, length_minus_one, ""); in lp_build_sample_wrap_linear_int() 265 coord1 = LLVMBuildAnd(builder, in lp_build_sample_wrap_linear_int() 305 coord0 = LLVMBuildAnd(builder, coord0, length_minus_one, ""); in lp_build_sample_wrap_linear_int() 323 *offset1 = LLVMBuildAnd(builder, in lp_build_sample_wrap_linear_int() 342 mask = LLVMBuildAnd(builder, lmask, umask, ""); in lp_build_sample_wrap_linear_int() 347 LLVMBuildAnd(builder, stride, mask, "")); in lp_build_sample_wrap_linear_int() 843 s_fpart = LLVMBuildAnd(builder, s, i32_c255, ""); in lp_build_sample_image_linear() [all …]
|
D | lp_bld_format_yuv.c | 127 *y = LLVMBuildAnd(builder, *y, mask, "y"); in uyvy_to_yuv_soa() 128 *u = LLVMBuildAnd(builder, *u, mask, "u"); in uyvy_to_yuv_soa() 129 *v = LLVMBuildAnd(builder, *v, mask, "v"); in uyvy_to_yuv_soa() 209 *y = LLVMBuildAnd(builder, *y, mask, "y"); in yuyv_to_yuv_soa() 210 *u = LLVMBuildAnd(builder, *u, mask, "u"); in yuyv_to_yuv_soa() 211 *v = LLVMBuildAnd(builder, *v, mask, "v"); in yuyv_to_yuv_soa()
|
D | lp_bld_format_soa.c | 156 input = LLVMBuildAnd(builder, input, in lp_build_extract_soa_chan() 385 input = LLVMBuildAnd(builder, input, mask, ""); in lp_build_rgba8_to_fi32_soa() 725 packed = LLVMBuildAnd(builder, packed, in lp_build_fetch_rgba_soa() 929 … chan = LLVMBuildAnd(builder, chan, lp_build_const_int_vec(gallivm, type, chan_mask), ""); in lp_build_insert_soa_chan() 942 chan = LLVMBuildAnd(builder, chan, lp_build_const_int_vec(gallivm, type, chan_mask), ""); in lp_build_insert_soa_chan() 1096 …LLVMValueRef should_store_mask = LLVMBuildAnd(gallivm->builder, exec_mask, LLVMBuildNot(gallivm->b… in lp_build_store_rgba_soa()
|
D | lp_bld_arit.c | 1398 res = LLVMBuildAnd(builder, res, low_bits, ""); in lp_build_lerp_simple() 1781 sign = LLVMBuildAnd(builder, sign, mask, ""); in lp_build_sgn() 1828 val = LLVMBuildAnd(builder, val, mask, ""); in lp_build_set_sign() 2381 sign = LLVMBuildAnd(builder, sign, mask, ""); in lp_build_iround() 2834 LLVMValueRef absi = LLVMBuildAnd(b, a_v4si, inv_sig_mask, "absi"); in lp_build_sin_or_cos() 2863 LLVMValueRef emm2_and = LLVMBuildAnd(b, emm2_add, inv_one, "emm2_and"); in lp_build_sin_or_cos() 2882 LLVMValueRef sign_bit = cos ? LLVMBuildShl(b, LLVMBuildAnd(b, const_4, in lp_build_sin_or_cos() 2885 LLVMBuildAnd(b, LLVMBuildXor(b, a_v4si, in lp_build_sin_or_cos() 2900 LLVMValueRef emm2_3 = LLVMBuildAnd(b, emm2_2, const_2, "emm2_3"); in lp_build_sin_or_cos() 2995 LLVMValueRef y2_and = LLVMBuildAnd(b, y2_i, poly_mask, "y2_and"); in lp_build_sin_or_cos() [all …]
|
D | lp_bld_bitarit.c | 110 res = LLVMBuildAnd(builder, a, b, ""); in lp_build_and() 140 res = LLVMBuildAnd(builder, a, res, ""); in lp_build_andnot()
|
D | lp_bld_swizzle.c | 192 a = LLVMBuildAnd(builder, a, in lp_build_swizzle_scalar_aos() 264 a = LLVMBuildAnd(builder, a, in lp_build_swizzle_scalar_aos() 526 masked = LLVMBuildAnd(builder, a, in lp_build_swizzle_aos()
|
D | lp_bld_logic.c | 276 a = LLVMBuildAnd(builder, a, mask, ""); in lp_build_select_bitwise() 283 b = LLVMBuildAnd(builder, b, LLVMBuildNot(builder, mask, ""), ""); in lp_build_select_bitwise()
|
D | lp_bld_format_aos.c | 326 masked = LLVMBuildAnd(builder, packed, LLVMConstVector(masks, 4), ""); in lp_build_unpack_arith_rgba_aos() 329 masked = LLVMBuildAnd(builder, shifted, LLVMConstVector(masks, 4), ""); in lp_build_unpack_arith_rgba_aos() 570 chans[j] = LLVMBuildAnd(builder, chans[j], in lp_build_fetch_rgba_aos()
|
D | lp_bld_nir_soa.c | 71 return LLVMBuildAnd(builder, lp_build_mask_value(bld->mask), in mask_vec() 1051 return LLVMBuildAnd(gallivm->builder, fetch_in_bounds, fetch_non_negative, ""); in lp_offset_in_range() 1272 do_fetch = LLVMBuildAnd(builder, do_fetch, ssbo_oob_cmp, ""); in emit_load_mem() 1379 do_store = LLVMBuildAnd(builder, do_store, ssbo_oob_cmp, ""); in emit_store_mem() 1435 do_fetch = LLVMBuildAnd(builder, do_fetch, ssbo_oob_cmp, ""); in emit_atomic_mem() 1976 return LLVMBuildAnd(builder, current_mask_vec, max_mask, ""); in clamp_mask_to_max_output_vertices() 2025 mask = LLVMBuildAnd(builder, mask, emitted_mask, ""); in end_primitive_masked() 2122 res = LLVMBuildAnd(builder, res, tmp, ""); in emit_vote() 2126 res = LLVMBuildAnd(builder, res, tmp, ""); in emit_vote() 2130 res = LLVMBuildAnd(builder, res, value_ptr, ""); in emit_vote() [all …]
|
D | lp_bld_tgsi_soa.c | 127 return LLVMBuildAnd(builder, lp_build_mask_value(bld->mask), in mask_vec() 189 mask->switch_mask = LLVMBuildAnd(builder, prevmask, defaultmask, "sw_mask"); in lp_exec_endswitch() 243 mask->switch_mask = LLVMBuildAnd(builder, casemask, prevmask, "sw_mask"); in lp_exec_case() 332 mask->switch_mask = LLVMBuildAnd(builder, prevmask, defaultmask, "sw_mask"); in lp_exec_default() 412 mask->ret_mask = LLVMBuildAnd(builder, in lp_exec_mask_ret() 2757 mask = LLVMBuildAnd(builder, mask, chan_mask, ""); in emit_kill_if() 3525 exec_mask = LLVMBuildAnd(builder, exec_mask, ssbo_oob_cmp, ""); in load_emit() 3646 exec_mask = LLVMBuildAnd(builder, exec_mask, ssbo_oob_cmp, ""); in store_emit() 3840 exec_mask = LLVMBuildAnd(builder, exec_mask, ssbo_oob_cmp, ""); in atomic_emit() 3960 return LLVMBuildAnd(builder, current_mask_vec, max_mask, ""); in clamp_mask_to_max_output_vertices() [all …]
|
D | lp_bld_flow.c | 198 value = LLVMBuildAnd(mask->skip.gallivm->builder, in lp_build_mask_update()
|
D | lp_bld_nir.c | 383 LLVMBuildAnd(builder, cast_type(bld_base, src0, nir_type_int, 32), in emit_b2f() 415 LLVMValueRef result = LLVMBuildAnd(builder, in emit_b2i() 585 div_mask2 = LLVMBuildAnd(builder, div_mask2, div_mask3, ""); in get_signed_divisor() 615 return LLVMBuildAnd(builder, not_div_mask, result, ""); in do_int_divide() 662 cond = LLVMBuildAnd(builder, cond, cond2, ""); in do_quantize_to_f16()
|
/third_party/mesa3d/src/amd/llvm/ |
D | ac_llvm_cull.c | 70 all_w_negative = LLVMBuildAnd(builder, all_w_negative, neg_w, ""); in ac_analyze_position_w() 193 accepted = LLVMBuildAnd(builder, accepted, visible, ""); in cull_bbox() 198 accepted = LLVMBuildAnd(builder, accepted, visible, ""); in cull_bbox() 232 visible = LLVMBuildAnd(builder, not_equal[0], not_equal[1], ""); in cull_bbox() 233 accepted = LLVMBuildAnd(builder, accepted, visible, ""); in cull_bbox() 305 accepted = LLVMBuildAnd(builder, accepted, in cull_bbox() 348 accepted = LLVMBuildAnd(ctx->builder, accepted, initially_accepted, ""); in ac_cull_primitive() 351 accepted = LLVMBuildAnd( in ac_cull_primitive()
|
D | ac_llvm_build.c | 816 is_ma_y = LLVMBuildAnd( in build_cube_select() 819 is_ma_x = LLVMBuildAnd(builder, is_not_ma_z, LLVMBuildNot(builder, is_ma_y, ""), ""); in build_cube_select() 1455 LLVMBuildAnd(ctx->builder, src, LLVMConstInt(ctx->i32, (1 << mant_bits) - 1, false), ""); in ac_ufN_to_float() 1628 LLVMValueRef r = LLVMBuildAnd(ctx->builder, data, i32_2047, ""); in ac_build_opencoded_load_format() 1630 LLVMValueRef g = LLVMBuildAnd(ctx->builder, tmp, i32_2047, ""); in ac_build_opencoded_load_format() 2339 samples = LLVMBuildAnd(ctx->builder, samples, LLVMConstInt(ctx->i32, 0xf, 0), ""); in ac_build_image_get_sample_count() 3073 value = LLVMBuildAnd(ctx->builder, value, LLVMConstInt(LLVMTypeOf(param), mask, false), ""); in ac_unpack_param() 3133 addr[sample_chan] = LLVMBuildAnd(ac->builder, final_sample, LLVMConstInt(ac->i32, 0x7, 0), ""); in ac_apply_fmask_to_sample() 3641 return LLVMBuildAnd(ctx->builder, lhs, rhs, ""); in ac_build_alu_op() 3681 LLVMBuildAnd(ctx->builder, tid, LLVMConstInt(ctx->i32, 0x1f, false), ""), in ac_wavefront_shift_right_1() [all …]
|
D | ac_nir_to_llvm.c | 368 cond = LLVMBuildAnd(ctx->builder, cond, cond2, ""); in emit_f2f16() 418 LLVMBuildAnd(ctx->builder, mask, LLVMBuildXor(ctx->builder, insert, base, ""), ""), ""); in emit_bitfield_select() 511 active = LLVMBuildAnd(ctx->ac.builder, active, in enter_waterfall() 727 result = LLVMBuildAnd(ctx->ac.builder, src[0], src[1], ""); in visit_alu() 1322 …result = LLVMBuildShl(ctx->ac.builder, LLVMBuildAnd(ctx->ac.builder, src[0], mask, ""), offset, ""… in visit_alu() 1423 stride = LLVMBuildAnd(ctx->ac.builder, stride, LLVMConstInt(ctx->ac.i32, 0x3fff, false), ""); in get_buffer_size() 1464 LLVMBuildAnd(ctx->builder, data_format, LLVMConstInt(ctx->i32, (1u << 6) - 1, false), ""); in lower_gather4_integer() 1471 wa_formats = LLVMBuildAnd(ctx->builder, formats, in lower_gather4_integer() 1501 sampler0 = LLVMBuildAnd(ctx->builder, sampler0, ctx->i32_1, ""); in lower_gather4_integer() 1948 LLVMBuildAnd(ctx->ac.builder, ac_llvm_extract_elem(&ctx->ac, descriptor, 1), in emit_ssbo_comp_swap_64() [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shader_llvm_resources.c | 41 index = LLVMBuildAnd(builder, index, c_max, ""); in si_llvm_bound_index() 149 tmp = LLVMBuildAnd(ctx->ac.builder, tmp, i32_C, ""); in force_dcc_off() 161 tmp = LLVMBuildAnd(ctx->ac.builder, tmp, i32_C, ""); in force_write_compress_off()
|
D | gfx10_shader_ngg.c | 181 prim.passthrough = LLVMBuildAnd(builder, prim.passthrough, edgeflags, ""); in gfx10_ngg_build_export_prim() 217 prim.edgeflags = LLVMBuildAnd(ctx->ac.builder, prim.edgeflags, edgeflags, ""); in gfx10_ngg_build_export_prim() 623 tmp = LLVMBuildAnd(builder, tmp, nggso->prim_enable[stream], ""); in build_streamout() 821 i8vec4 = LLVMBuildAnd(builder, i8vec4, in load_vertex_counts() 830 i8vec4 = LLVMBuildAnd(builder, i8vec4, in load_vertex_counts() 861 *tg_info = LLVMBuildAnd(builder, *tg_info, LLVMConstInt(ctx->ac.i32, tg_info_mask, 0), ""); in update_thread_counts() 874 *wave_info = LLVMBuildAnd(builder, *wave_info, LLVMConstInt(ctx->ac.i32, wave_info_mask, 0), ""); in update_thread_counts() 1218 clipdist_neg_mask = LLVMBuildAnd(builder, clipdist_neg_mask, mask, ""); in gfx10_ngg_culling_build_end() 1807 LLVMValueRef swizzle = LLVMBuildAnd( in ngg_gs_vertex_ptr() 1900 tmp = LLVMBuildAnd(builder, curverts, ctx->ac.i32_1, ""); in gfx10_ngg_gs_emit_vertex() [all …]
|
D | si_shader_llvm.c | 369 value = LLVMBuildAnd(ctx->ac.builder, value, LLVMConstInt(ctx->ac.i32, mask, 0), ""); in unpack_llvm_param() 597 count = LLVMBuildAnd(builder, count, LLVMConstInt(ctx->ac.i32, 0x7f, 0), ""); in si_build_wrapper_function() 676 count = LLVMBuildAnd(builder, count, LLVMConstInt(ctx->ac.i32, 0x7f, 0), ""); in si_build_wrapper_function()
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_llvm.c | 1050 stride = LLVMBuildAnd(builder, stride, index_valid, ""); in fetch_instanced() 1062 aos = LLVMBuildAnd(builder, aos, index_valid, ""); in fetch_instanced() 1102 offset = LLVMBuildAnd(builder, offset, valid_mask, ""); in fetch_vector() 1139 inputs[i] = LLVMBuildAnd(builder, inputs[i], valid_mask, ""); in fetch_vector() 1207 clipmask = LLVMBuildAnd(builder, mask, lp_build_const_int32(gallivm, 0x3fff), ""); in adjust_mask() 1210 pad = LLVMBuildAnd(builder, mask, lp_build_const_int32(gallivm, 0x8000), ""); in adjust_mask() 1213 edgeflag = LLVMBuildAnd(builder, mask, lp_build_const_int32(gallivm, 0x4000), ""); in adjust_mask() 1570 test = LLVMBuildAnd(builder, test, temp, ""); in generate_clipmask() 1577 test = LLVMBuildAnd(builder, test, temp, ""); in generate_clipmask() 1583 test = LLVMBuildAnd(builder, test, temp, ""); in generate_clipmask() [all …]
|