/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_nir_soa.c | 106 return lp_build_const_int32(gallivm, 0); in lp_build_zero_bits() 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() 128 shuffles[i] = lp_build_const_int32(gallivm, i / 2 + bld_base->base.type.length); in emit_fetch_64bit() 129 shuffles[i + 1] = lp_build_const_int32(gallivm, i / 2); in emit_fetch_64bit() 152 shuffles[i] = lp_build_const_int32(gallivm, i * 2); in emit_store_64bit_split() 153 shuffles2[i] = lp_build_const_int32(gallivm, (i * 2) + 1); in emit_store_64bit_split() 155 shuffles[i] = lp_build_const_int32(gallivm, i * 2 + 1); in emit_store_64bit_split() 156 shuffles2[i] = lp_build_const_int32(gallivm, i * 2); in emit_store_64bit_split() 213 LLVMValueRef ii = lp_build_const_int32(gallivm, i); in get_soa_array_offsets() [all …]
|
D | lp_bld_quad.c | 139 shuffles1[4*i + 0] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s1); in lp_build_packed_ddx_ddy_twocoord() 140 shuffles1[4*i + 1] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s1); in lp_build_packed_ddx_ddy_twocoord() 141 shuffles1[4*i + 2] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s2); in lp_build_packed_ddx_ddy_twocoord() 142 shuffles1[4*i + 3] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s2); in lp_build_packed_ddx_ddy_twocoord() 143 shuffles2[4*i + 0] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_RIGHT + s1); in lp_build_packed_ddx_ddy_twocoord() 144 shuffles2[4*i + 1] = lp_build_const_int32(gallivm, LP_BLD_QUAD_BOTTOM_LEFT + s1); in lp_build_packed_ddx_ddy_twocoord() 145 shuffles2[4*i + 2] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_RIGHT + s2); in lp_build_packed_ddx_ddy_twocoord() 146 shuffles2[4*i + 3] = lp_build_const_int32(gallivm, LP_BLD_QUAD_BOTTOM_LEFT + s2); in lp_build_packed_ddx_ddy_twocoord()
|
D | lp_bld_pack.c | 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() 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() 150 elems[i] = lp_build_const_int32(gallivm, j); in lp_build_const_unpack_shuffle_16wide() 170 elems[i] = lp_build_const_int32(gallivm, 2*i); in lp_build_const_pack_shuffle() 172 elems[i] = lp_build_const_int32(gallivm, 2*i+1); in lp_build_const_pack_shuffle() 195 elems[i] = lp_build_const_int32(gallivm, i + start); in lp_build_extract_range() 233 shuffles[i] = lp_build_const_int32(gallivm, i); in lp_build_concat() 302 elems[i] = lp_build_const_int32(gallivm, 2*i + lo_hi); in lp_build_uninterleave1() [all …]
|
D | lp_bld_struct.c | 56 indices[0] = lp_build_const_int32(gallivm, 0); in lp_build_struct_get_ptr() 57 indices[1] = lp_build_const_int32(gallivm, member); in lp_build_struct_get_ptr() 91 indices[0] = lp_build_const_int32(gallivm, 0); in lp_build_struct_get_ptr2() 92 indices[1] = lp_build_const_int32(gallivm, member); in lp_build_struct_get_ptr2() 124 indices[0] = lp_build_const_int32(gallivm, 0); in lp_build_array_get_ptr()
|
D | lp_bld_tgsi_soa.c | 467 LLVMValueRef lindex = lp_build_const_int32(bld->bld_base.base.gallivm, index * 4 + chan); in get_file_ptr() 470 gep[0] = lp_build_const_int32(bld->bld_base.base.gallivm, 0); in get_file_ptr() 587 di = lp_build_const_int32(bld->gallivm, i); in build_gather() 589 si = lp_build_const_int32(bld->gallivm, i >> 1); in build_gather() 641 LLVMValueRef ii = lp_build_const_int32(gallivm, i); in emit_mask_scatter() 792 LLVMValueRef ii = lp_build_const_int32(gallivm, i); in get_soa_array_offsets() 870 index = lp_build_const_int32(gallivm, reg->Register.Index * 4 + swizzle); in emit_fetch_constant() 879 index = lp_build_const_int32(gallivm, reg->Register.Index * 4 + (swizzle_in >> 16)); in emit_fetch_constant() 886 shuffles[0] = lp_build_const_int32(gallivm, 0); in emit_fetch_constant() 887 shuffles[1] = lp_build_const_int32(gallivm, 1); in emit_fetch_constant() [all …]
|
D | lp_bld_gather.c | 65 LLVMValueRef index = lp_build_const_int32(gallivm, i); in lp_build_gather_elem_ptr() 258 lp_build_const_int32(gallivm, 2), in lp_build_gather_elem_vec() 259 lp_build_const_int32(gallivm, 1), in lp_build_gather_elem_vec() 260 lp_build_const_int32(gallivm, 0), in lp_build_gather_elem_vec() 261 lp_build_const_int32(gallivm, 3), in lp_build_gather_elem_vec() 543 LLVMValueRef index = lp_build_const_int32(gallivm, i); in lp_build_gather() 596 LLVMValueRef index = lp_build_const_int32(gallivm, i); in lp_build_gather_values()
|
D | lp_bld_format_s3tc.c | 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() 123 elems[i] = lp_build_const_int32(gallivm, i); in lp_build_const_extend_shuffle() 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() 145 elems[n + i + 0] = lp_build_const_int32(gallivm, 0 + n/2 + j); in lp_build_const_unpackx2_shuffle() 146 elems[n + i + 1] = lp_build_const_int32(gallivm, n + n/2 + j); in lp_build_const_unpackx2_shuffle() 167 elems[i] = lp_build_const_int32(gallivm, index); in lp_build_const_shuffle1() 185 elems[0] = lp_build_const_int32(gallivm, index); in lp_build_shuffle1undef() 256 lp_build_const_int32(gallivm, 0), ""); in lp_build_gather_s3tc() [all …]
|
D | lp_bld_nir_aos.c | 71 lp_build_const_int32(gallivm, i), ""); in lp_nir_aos_conv_const() 234 lp_build_const_int32(gallivm, 0), ""); in emit_load_ubo() 238 LLVMValueRef this_offset = lp_build_const_int32(gallivm, in emit_load_ubo() 248 LLVMValueRef swizzle = lp_build_const_int32(bld->bld_base.base.gallivm, in emit_load_ubo() 259 lp_build_const_int32(bld->bld_base.base.gallivm, chan); in emit_load_ubo()
|
D | lp_bld_format_aos.c | 282 shifts[i] = lp_build_const_int32(gallivm, shift); in lp_build_unpack_arith_rgba_aos() 283 masks[i] = lp_build_const_int32(gallivm, mask); in lp_build_unpack_arith_rgba_aos() 323 masks[i] = lp_build_const_int32(gallivm, mask); in lp_build_unpack_arith_rgba_aos() 391 swizzles[i] = lp_build_const_int32(gallivm, j); in lp_build_pack_rgba_aos() 415 shifts[i] = lp_build_const_int32(gallivm, shift); in lp_build_pack_rgba_aos() 439 lp_build_const_int32(gallivm, i), ""); in lp_build_pack_rgba_aos() 859 LLVMValueRef index = lp_build_const_int32(gallivm, k); in lp_build_fetch_rgba_aos() 971 LLVMValueRef index = lp_build_const_int32(gallivm, k); in lp_build_fetch_rgba_aos()
|
D | lp_bld_arit.c | 553 shuffles1[i] = lp_build_const_int32(bld->gallivm, i); in lp_build_horizontal_add() 554 shuffles2[i] = lp_build_const_int32(bld->gallivm, i + length); in lp_build_horizontal_add() 572 index = lp_build_const_int32(bld->gallivm, 0); in lp_build_horizontal_add() 574 index = lp_build_const_int32(bld->gallivm, 1); in lp_build_horizontal_add() 601 shuffles[0] = lp_build_const_int32(gallivm, 0); in lp_build_horizontal_add4x4f() 602 shuffles[1] = lp_build_const_int32(gallivm, 1); in lp_build_horizontal_add4x4f() 603 shuffles[2] = lp_build_const_int32(gallivm, 4); in lp_build_horizontal_add4x4f() 604 shuffles[3] = lp_build_const_int32(gallivm, 5); in lp_build_horizontal_add4x4f() 611 shuffles[0] = lp_build_const_int32(gallivm, 2); in lp_build_horizontal_add4x4f() 612 shuffles[1] = lp_build_const_int32(gallivm, 3); in lp_build_horizontal_add4x4f() [all …]
|
D | lp_bld_sample.c | 386 LLVMValueRef index0 = lp_build_const_int32(gallivm, 0); in lp_build_rho() 410 LLVMValueRef indexi = lp_build_const_int32(gallivm, i); in lp_build_rho() 572 shuffles1[4*i + 0] = lp_build_const_int32(gallivm, 4*i); in lp_build_rho() 573 shuffles1[4*i + 1] = lp_build_const_int32(gallivm, 4*i + 2); in lp_build_rho() 574 shuffles1[4*i + 2] = lp_build_const_int32(gallivm, length + 4*i); in lp_build_rho() 576 shuffles2[4*i + 0] = lp_build_const_int32(gallivm, 4*i + 1); in lp_build_rho() 577 shuffles2[4*i + 1] = lp_build_const_int32(gallivm, 4*i + 3); in lp_build_rho() 578 shuffles2[4*i + 2] = lp_build_const_int32(gallivm, length + 4*i + 2); in lp_build_rho() 1175 LLVMValueRef zero = lp_build_const_int32(gallivm, 0); in load_mip() 1215 LLVMValueRef indexi = lp_build_const_int32(bld->gallivm, i); in lp_build_get_mip_offsets() [all …]
|
D | lp_bld_format_soa.c | 529 shuffles[j] = lp_build_const_int32(gallivm, idx); in lp_build_fetch_rgba_soa() 539 shuffles[j] = lp_build_const_int32(gallivm, idx); in lp_build_fetch_rgba_soa() 549 LLVMValueRef zero = lp_build_const_int32(gallivm, 0); in lp_build_fetch_rgba_soa() 630 shuffles[j] = lp_build_const_int32(gallivm, idx); in lp_build_fetch_rgba_soa() 847 …rgba_out[k] = LLVMBuildExtractElement(gallivm->builder, fetch, lp_build_const_int32(gallivm, k), "… in lp_build_fetch_rgba_soa() 860 LLVMValueRef index = lp_build_const_int32(gallivm, k); in lp_build_fetch_rgba_soa() 1104 lp_build_loop_begin(&loop_state, gallivm, lp_build_const_int32(gallivm, 0)); in lp_build_store_rgba_soa() 1123 lp_build_loop_end_cond(&loop_state, lp_build_const_int32(gallivm, type.length), in lp_build_store_rgba_soa()
|
D | lp_bld_nir.c | 457 shuffles[i] = lp_build_const_int32(gallivm, i * 2); in split_64bit() 458 shuffles2[i] = lp_build_const_int32(gallivm, (i * 2) + 1); in split_64bit() 460 shuffles[i] = lp_build_const_int32(gallivm, (i * 2) + 1); in split_64bit() 461 shuffles2[i] = lp_build_const_int32(gallivm, (i * 2)); in split_64bit() 489 shuffles[i] = lp_build_const_int32(gallivm, i / 2); in merge_64bit() 490 shuffles[i + 1] = lp_build_const_int32(gallivm, i / 2 + bld_base->base.type.length); in merge_64bit() 492 shuffles[i] = lp_build_const_int32(gallivm, i / 2 + bld_base->base.type.length); in merge_64bit() 493 shuffles[i + 1] = lp_build_const_int32(gallivm, i / 2); in merge_64bit() 511 shuffles[i] = lp_build_const_int32(gallivm, i * 2); in split_16bit() 512 shuffles2[i] = lp_build_const_int32(gallivm, (i * 2) + 1); in split_16bit() [all …]
|
D | lp_bld_intr.c | 340 elems[i] = lp_build_const_int32(gallivm, i); in lp_build_intrinsic_binary_anylength() 416 LLVMValueRef index = lp_build_const_int32(gallivm, i); in lp_build_intrinsic_map()
|
D | lp_bld_const.h | 124 lp_build_const_int32(struct gallivm_state *gallivm, int i) in lp_build_const_int32() function
|
D | lp_bld_tgsi_aos.c | 127 index = lp_build_const_int32(bld->bld_base.base.gallivm, in emit_fetch_constant() 140 swizzle = lp_build_const_int32(bld->bld_base.base.gallivm, in emit_fetch_constant() 157 shuffles[chan] = lp_build_const_int32(bld->bld_base.base.gallivm, chan); in emit_fetch_constant() 388 LLVMValueRef array_size = lp_build_const_int32(gallivm, last + 1); in lp_emit_declaration_aos()
|
D | lp_bld_printf.c | 139 param = LLVMBuildExtractElement(builder, value, lp_build_const_int32(gallivm, i), ""); in lp_build_print_value()
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_llvm_sample.c | 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() 126 …ef cond = LLVMBuildICmp(gallivm->builder, LLVMIntULT, indices[2], lp_build_const_int32(gallivm, PI… 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() 170 indices[0] = lp_build_const_int32(gallivm, 0); in draw_llvm_sampler_member() 172 indices[1] = lp_build_const_int32(gallivm, DRAW_JIT_CTX_SAMPLERS); in draw_llvm_sampler_member() 174 indices[2] = lp_build_const_int32(gallivm, sampler_unit); in draw_llvm_sampler_member() 176 indices[3] = lp_build_const_int32(gallivm, member_index); in draw_llvm_sampler_member() [all …]
|
D | draw_llvm.c | 1066 LLVMValueRef index = lp_build_const_int32(gallivm, i); in fetch_instanced() 1158 indices[0] = lp_build_const_int32(gallivm, 0); in store_aos() 1160 indices[2] = lp_build_const_int32(gallivm, 0); in store_aos() 1206 vertex_id = LLVMBuildLShr(builder, mask, lp_build_const_int32(gallivm, 16), ""); in adjust_mask() 1207 clipmask = LLVMBuildAnd(builder, mask, lp_build_const_int32(gallivm, 0x3fff), ""); in adjust_mask() 1208 clipmask = LLVMBuildShl(builder, clipmask, lp_build_const_int32(gallivm, 18), ""); in adjust_mask() 1210 pad = LLVMBuildAnd(builder, mask, lp_build_const_int32(gallivm, 0x8000), ""); in adjust_mask() 1211 pad = LLVMBuildShl(builder, pad, lp_build_const_int32(gallivm, 1), ""); in adjust_mask() 1213 edgeflag = LLVMBuildAnd(builder, mask, lp_build_const_int32(gallivm, 0x4000), ""); in adjust_mask() 1214 edgeflag = LLVMBuildShl(builder, edgeflag, lp_build_const_int32(gallivm, 3), ""); in adjust_mask() [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_tex_sample.c | 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() 138 lp_build_const_int32(gallivm, in lp_llvm_texture_member() 141 lp_build_const_int32(gallivm, in lp_llvm_texture_member() 145 indices[3] = lp_build_const_int32(gallivm, member_index); in lp_llvm_texture_member() 217 indices[0] = lp_build_const_int32(gallivm, 0); in LP_LLVM_TEXTURE_MEMBER() 219 indices[1] = lp_build_const_int32(gallivm, LP_JIT_CTX_SAMPLERS); in LP_LLVM_TEXTURE_MEMBER() 221 indices[2] = lp_build_const_int32(gallivm, sampler_unit); in LP_LLVM_TEXTURE_MEMBER() 223 indices[3] = lp_build_const_int32(gallivm, member_index); in LP_LLVM_TEXTURE_MEMBER() [all …]
|
D | lp_bld_interp.c | 146 nr = lp_build_const_int32(gallivm, i); in calc_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() 239 LLVMValueRef index = lp_build_const_int32(gallivm, in coeffs_init_simple() 329 index = lp_build_const_int32(gallivm, chan); in attribs_update_simple() 338 …LVMValueRef x_val_idx = LLVMBuildMul(gallivm->builder, sample_id, lp_build_const_int32(gallivm, 2)… in attribs_update_simple() 348 …LVMValueRef y_val_idx = LLVMBuildMul(gallivm->builder, sample_id, lp_build_const_int32(gallivm, 2)… in attribs_update_simple() 349 … y_val_idx = LLVMBuildAdd(gallivm->builder, y_val_idx, lp_build_const_int32(gallivm, 1), ""); in attribs_update_simple() 371 …LVMValueRef x_val_idx = LLVMBuildMul(gallivm->builder, sample_id, lp_build_const_int32(gallivm, 2)… in attribs_update_simple() [all …]
|
D | lp_bld_depth.c | 475 shuffles[i] = lp_build_const_int32(gallivm, 4*i); in lp_build_occlusion_count() 477 shuffles[i] = lp_build_const_int32(gallivm, (4*i) + 3); in lp_build_occlusion_count() 557 lp_build_const_int32(gallivm, 1), ""); in lp_build_depth_stencil_load_swizzled() 559 lp_build_const_int32(gallivm, 2), ""); in lp_build_depth_stencil_load_swizzled() 563 lp_build_const_int32(gallivm, depth_bytes * 2), ""); in lp_build_depth_stencil_load_swizzled() 568 shuffles[i] = lp_build_const_int32(gallivm, i); in lp_build_depth_stencil_load_swizzled() 574 lp_build_const_int32(gallivm, 1), ""); in lp_build_depth_stencil_load_swizzled() 582 shuffles[i] = lp_build_const_int32(gallivm, (i&1) + (i&2) * 2 + (i&4) / 2); in lp_build_depth_stencil_load_swizzled() 637 shuffles1[i] = lp_build_const_int32(gallivm, i * 2); in lp_build_depth_stencil_load_swizzled() 638 shuffles2[i] = lp_build_const_int32(gallivm, i * 2 + 1); in lp_build_depth_stencil_load_swizzled() [all …]
|
D | lp_state_setup.c | 96 LLVMValueRef idx = lp_build_const_int32(gallivm, slot); in store_coef() 165 idx[0] = lp_build_const_int32(gallivm, attr); in vert_attrib() 166 idx[1] = lp_build_const_int32(gallivm, elem); in vert_attrib() 180 LLVMValueRef idx2 = lp_build_const_int32(gallivm, bcolor_slot); in lp_twoside() 184 … lp_build_const_int32(gallivm, 0), ""); /** need i1 for if condition */ in lp_twoside() 219 LLVMValueRef onei = lp_build_const_int32(gallivm, 1); in lp_do_offset_tri() 220 LLVMValueRef zeroi = lp_build_const_int32(gallivm, 0); in lp_do_offset_tri() 221 LLVMValueRef twoi = lp_build_const_int32(gallivm, 2); in lp_do_offset_tri() 222 LLVMValueRef threei = lp_build_const_int32(gallivm, 3); in lp_do_offset_tri() 277 c23_shifted = lp_build_const_int32(gallivm, 23 << 23); in lp_do_offset_tri() [all …]
|
D | lp_state_fs.c | 268 lp_build_const_int32(gallivm, 0xffff), ""); in generate_quad_mask() 386 lp_build_const_int32(gallivm, LP_JIT_VIEWPORT_MIN_DEPTH), ""); in lp_build_depth_clamp() 391 lp_build_const_int32(gallivm, LP_JIT_VIEWPORT_MAX_DEPTH), ""); in lp_build_depth_clamp() 419 … LLVMValueRef s_mask_idx = LLVMBuildMul(builder, lp_build_const_int32(gallivm, s), num_loop, ""); in lp_build_sample_alpha_to_coverage() 515 LLVMValueRef index = lp_build_const_int32(gallivm, cbuf); in fs_fb_fetch() 539 LLVMValueRef index = lp_build_const_int32(gallivm, location - FRAG_RESULT_DATA0); in fs_fb_fetch() 558 … LLVMBuildAnd(builder, fs_iface->loop_state->counter, lp_build_const_int32(gallivm, 1), ""), in fs_fb_fetch() 559 lp_build_const_int32(gallivm, 1), ""); in fs_fb_fetch() 560 …counter = LLVMBuildLShr(builder, fs_iface->loop_state->counter, lp_build_const_int32(gallivm, 1), … in fs_fb_fetch() 562 y_offset = LLVMBuildMul(builder, counter, lp_build_const_int32(gallivm, 2), ""); in fs_fb_fetch() [all …]
|
D | lp_state_cs.c | 188 LLVMValueRef vec_length = lp_build_const_int32(gallivm, cs_type.length); in generate_compute() 190 num_x_loop = LLVMBuildSub(gallivm->builder, num_x_loop, lp_build_const_int32(gallivm, 1), ""); in generate_compute() 213 lp_build_const_int32(gallivm, 0)); /* coroutine reentry loop */ in generate_compute() 215 lp_build_const_int32(gallivm, 0)); /* z loop */ in generate_compute() 217 lp_build_const_int32(gallivm, 0)); /* y loop */ in generate_compute() 219 lp_build_const_int32(gallivm, 0)); /* x loop */ in generate_compute() 258 lp_build_const_int32(gallivm, 0), ""); in generate_compute() 270 … lp_build_loop_force_set_counter(&loop_state[3], lp_build_const_int32(gallivm, end_coroutine - 1)); in generate_compute() 288 lp_build_const_int32(gallivm, end_coroutine), in generate_compute() 346 …s_partials = LLVMBuildICmp(gallivm->builder, LLVMIntNE, partials, lp_build_const_int32(gallivm, 0)… in generate_compute() [all …]
|