Home
last modified time | relevance | path

Searched refs:shuffles (Results 1 - 21 of 21) sorted by relevance

/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_swizzle.c165 * using shuffles here actually causes worst results. More investigation is in lp_build_swizzle_scalar_aos()
172 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_swizzle_scalar_aos() local
176 shuffles[j + i] = LLVMConstInt(elem_type, j + channel, 0); in lp_build_swizzle_scalar_aos()
178 return LLVMBuildShuffleVector(builder, a, bld->undef, LLVMConstVector(shuffles, n), ""); in lp_build_swizzle_scalar_aos()
324 LLVMValueRef shuffles[LP_MAX_VECTOR_WIDTH]; in lp_build_swizzle_aos_n() local
332 shuffles[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context)); in lp_build_swizzle_aos_n()
334 shuffles[i] = lp_build_const_int32(gallivm, swizzle); in lp_build_swizzle_aos_n()
340 LLVMConstVector(shuffles, dst_len), ""); in lp_build_swizzle_aos_n()
388 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_swizzle_aos() local
404 shuffles[ in lp_build_swizzle_aos()
747 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; lp_build_pack_aos_scalars() local
781 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; lp_build_unpack_broadcast_aos_scalars() local
[all...]
H A Dlp_bld_nir_aos.c200 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in emit_store_reg() local
204 shuffles[j] = LLVMConstInt(i32t, 16 + j, 0); // new val in emit_store_reg()
206 shuffles[j] = LLVMConstInt(i32t, j, 0); // cur val in emit_store_reg()
210 LLVMConstVector(shuffles, 16), ""); in emit_store_reg()
255 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in emit_load_ubo() local
258 shuffles[chan] = in emit_load_ubo()
263 shuffles[i] = shuffles[i % nc]; in emit_load_ubo()
267 LLVMConstVector(shuffles, type.length), in emit_load_ubo()
H A Dlp_bld_arit.c596 LLVMValueRef shuffles[4]; in lp_build_horizontal_add4x4f() local
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()
606 LLVMConstVector(shuffles, 4), ""); in lp_build_horizontal_add4x4f()
608 LLVMConstVector(shuffles, 4), ""); 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()
613 shuffles[ in lp_build_horizontal_add4x4f()
[all...]
H A Dlp_bld_nir.c452 LLVMValueRef shuffles[LP_MAX_VECTOR_WIDTH/32]; in split_64bit() local
457 shuffles[i] = lp_build_const_int32(gallivm, i * 2); in split_64bit()
460 shuffles[i] = lp_build_const_int32(gallivm, (i * 2) + 1); in split_64bit()
469 LLVMConstVector(hi ? shuffles2 : shuffles, in split_64bit()
483 LLVMValueRef shuffles[2 * (LP_MAX_VECTOR_WIDTH/32)]; in merge_64bit() local
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()
496 return LLVMBuildShuffleVector(builder, input, input2, LLVMConstVector(shuffles, le in merge_64bit()
506 LLVMValueRef shuffles[LP_MAX_VECTOR_WIDTH/32]; split_16bit() local
536 LLVMValueRef shuffles[2 * (LP_MAX_VECTOR_WIDTH/32)]; merge_16bit() local
[all...]
H A Dlp_bld_format_soa.c495 LLVMValueRef packed[4], dst[4], output[4], shuffles[LP_MAX_VECTOR_WIDTH/32]; in lp_build_fetch_rgba_soa() local
512 * (as we shuffle after trunc). The shuffles for that work out in lp_build_fetch_rgba_soa()
529 shuffles[j] = lp_build_const_int32(gallivm, idx); in lp_build_fetch_rgba_soa()
531 shuf_vec = LLVMConstVector(shuffles, gather_type.length); in lp_build_fetch_rgba_soa()
539 shuffles[j] = lp_build_const_int32(gallivm, idx); in lp_build_fetch_rgba_soa()
541 shuf_vec = LLVMConstVector(shuffles, gather_type.length); in lp_build_fetch_rgba_soa()
558 * and instead use 3 int shuffles instead, the code looks atrocious. in lp_build_fetch_rgba_soa()
562 * which usually don't even exist for shuffles anyway. in lp_build_fetch_rgba_soa()
588 * due to shuffles being float ones afterwards (albeit for in lp_build_fetch_rgba_soa()
630 shuffles[ in lp_build_fetch_rgba_soa()
[all...]
H A Dlp_bld_tgsi_aos.c153 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in emit_fetch_constant() local
157 shuffles[chan] = lp_build_const_int32(bld->bld_base.base.gallivm, chan); in emit_fetch_constant()
161 shuffles[i] = shuffles[i % 4]; in emit_fetch_constant()
166 LLVMConstVector(shuffles, type.length), in emit_fetch_constant()
H A Dlp_bld_logic.c472 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_select_aos() local
476 shuffles[j + i] = LLVMConstInt(elem_type, in lp_build_select_aos()
481 LLVMConstVector(shuffles, n), ""); in lp_build_select_aos()
H A Dlp_bld_sample.c283 LLVMValueRef ddx_ddys, ddx_ddyt, floatdim, shuffles[LP_MAX_VECTOR_LENGTH / 4]; in lp_build_pmin() local
286 shuffles[i*4+0] = shuffles[i*4+1] = index0; in lp_build_pmin()
287 shuffles[i*4+2] = shuffles[i*4+3] = index1; in lp_build_pmin()
290 LLVMConstVector(shuffles, length), ""); in lp_build_pmin()
502 LLVMValueRef ddx_ddys, ddx_ddyt, floatdim, shuffles[LP_MAX_VECTOR_LENGTH / 4]; in lp_build_rho() local
505 shuffles[i*4+0] = shuffles[i*4+1] = index0; in lp_build_rho()
506 shuffles[ in lp_build_rho()
[all...]
H A Dlp_bld_pack.c219 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_concat() local
221 assert(src_type.length * num_vectors <= ARRAY_SIZE(shuffles)); in lp_build_concat()
233 shuffles[i] = lp_build_const_int32(gallivm, i); in lp_build_concat()
237 LLVMConstVector(shuffles, new_length), ""); in lp_build_concat()
331 * So use some different shuffles instead (the exact shuffles don't seem to in lp_build_interleave2()
H A Dlp_bld_gather.c257 LLVMValueRef shuffles[4] = { in lp_build_gather_elem_vec() local
265 res = LLVMBuildShuffleVector(gallivm->builder, res, res, LLVMConstVector(shuffles, 4), ""); in lp_build_gather_elem_vec()
H A Dlp_bld_tgsi_soa.c878 LLVMValueRef shuffles[2]; in emit_fetch_constant() local
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()
890 res = LLVMBuildInsertElement(builder, res, scalar, shuffles[0], ""); in emit_fetch_constant()
891 res = LLVMBuildInsertElement(builder, res, scalar2, shuffles[1], ""); in emit_fetch_constant()
940 LLVMValueRef shuffles[2 * (LP_MAX_VECTOR_WIDTH/32)]; in emit_fetch_64bit() local
945 shuffles[i] = lp_build_const_int32(gallivm, i / 2); in emit_fetch_64bit()
946 shuffles[i + 1] = lp_build_const_int32(gallivm, i / 2 + bld_base->base.type.length); in emit_fetch_64bit()
948 res = LLVMBuildShuffleVector(builder, input, input2, LLVMConstVector(shuffles, len), ""); in emit_fetch_64bit()
1652 LLVMValueRef shuffles[LP_MAX_VECTOR_WIDT in emit_store_64bit_chan() local
[all...]
H A Dlp_bld_sample_aos.c574 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in lp_build_sample_fetch_image_linear() local
614 shuffles[j + i] = index; in lp_build_sample_fetch_image_linear()
617 shuffle = LLVMConstVector(shuffles, u8n.type.length); in lp_build_sample_fetch_image_linear()
H A Dlp_bld_nir_soa.c119 LLVMValueRef shuffles[2 * (LP_MAX_VECTOR_WIDTH/32)]; in emit_fetch_64bit() local
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()
132 res = LLVMBuildShuffleVector(builder, input, input2, LLVMConstVector(shuffles, len), ""); in emit_fetch_64bit()
145 LLVMValueRef shuffles[LP_MAX_VECTOR_WIDTH/32]; in emit_store_64bit_split() local
152 shuffles[i] = lp_build_const_int32(gallivm, i * 2); in emit_store_64bit_split()
155 shuffles[i] = lp_build_const_int32(gallivm, i * 2 + 1); in emit_store_64bit_split()
162 LLVMConstVector(shuffles, in emit_store_64bit_split()
[all...]
H A Dlp_bld_sample_soa.c2133 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH / 4]; in lp_build_sample_aniso() local
2136 shuffles[i*4+0] = shuffles[i*4+1] = index0; in lp_build_sample_aniso()
2137 shuffles[i*4+2] = shuffles[i*4+3] = index1; in lp_build_sample_aniso()
2142 LLVMConstVector(shuffles, length), ""); in lp_build_sample_aniso()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_state_setup.c217 LLVMValueRef shuffles[4]; in lp_do_offset_tri() local
225 shuffles[0] = twoi; in lp_do_offset_tri()
226 shuffles[1] = zeroi; in lp_do_offset_tri()
227 shuffles[2] = onei; in lp_do_offset_tri()
228 shuffles[3] = twoi; in lp_do_offset_tri()
229 dzxyz20 = LLVMBuildShuffleVector(b, dxyz20, dxyz20, LLVMConstVector(shuffles, 4), ""); in lp_do_offset_tri()
231 shuffles[0] = onei; in lp_do_offset_tri()
232 shuffles[1] = twoi; in lp_do_offset_tri()
233 shuffles[2] = twoi; in lp_do_offset_tri()
234 shuffles[ in lp_do_offset_tri()
547 LLVMValueRef shuffles[4], shuf10; init_args() local
[all...]
H A Dlp_bld_depth.c468 LLVMValueRef shuffles[16]; in lp_build_occlusion_count() local
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()
481 shufflev = LLVMConstVector(shuffles, type.length); in lp_build_occlusion_count()
545 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH / 4]; in lp_build_depth_stencil_load_swizzled() local
568 shuffles[i] = lp_build_const_int32(gallivm, i); 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()
605 LLVMConstVector(shuffles, zs_type.length), ""); in lp_build_depth_stencil_load_swizzled()
687 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH / 4]; in lp_build_depth_stencil_write_swizzled() local
730 shuffles[ in lp_build_depth_stencil_write_swizzled()
782 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH / 2]; lp_build_depth_stencil_write_swizzled() local
[all...]
H A Dlp_state_fs.c1957 LLVMValueRef shuffles[8]; in convert_to_blend_type() local
1966 shuffles[j] = lp_build_const_int32(gallivm, j * 2); in convert_to_blend_type()
1967 shuffles[j + 4] = lp_build_const_int32(gallivm, j * 2 + 1); in convert_to_blend_type()
1970 LLVMConstVector(shuffles, 8), ""); in convert_to_blend_type()
2119 LLVMValueRef tmpaos, shuffles[8]; in convert_from_blend_type() local
2126 shuffles[j * 2] = lp_build_const_int32(gallivm, j); in convert_from_blend_type()
2127 shuffles[j * 2 + 1] = lp_build_const_int32(gallivm, j + 4); in convert_from_blend_type()
2130 LLVMConstVector(shuffles, 8), ""); in convert_from_blend_type()
2321 LLVMValueRef shuffles[LP_MAX_VECTOR_LENGTH]; in convert_alpha() local
2323 /* Check if we need 2 src_alphas for our shuffles */ in convert_alpha()
[all...]
/third_party/skia/third_party/externals/libwebp/src/dsp/
H A Denc_neon.c860 uint8x8x4_t shuffles; in QuantizeBlock_NEON() local
867 INIT_VECTOR4(shuffles, in QuantizeBlock_NEON()
879 INIT_VECTOR4(shuffles, in QuantizeBlock_NEON()
886 vst1_u8((uint8_t*)(out + 0), shuffles.val[0]); in QuantizeBlock_NEON()
887 vst1_u8((uint8_t*)(out + 4), shuffles.val[1]); in QuantizeBlock_NEON()
888 vst1_u8((uint8_t*)(out + 8), shuffles.val[2]); in QuantizeBlock_NEON()
889 vst1_u8((uint8_t*)(out + 12), shuffles.val[3]); in QuantizeBlock_NEON()
/third_party/rust/crates/aho-corasick/src/packed/teddy/
H A Dcompile.rs322 /// shuffle are taken from the haystack. AND'ing the shuffles for both the
348 // process 32 bytes at a time. Namely, AVX2 shuffles operate on each in add_slim()
/third_party/ffmpeg/libavutil/x86/
H A Dtx_float.asm29 ; replace some shuffles with vblends?
H A Dx86inc.asm1580 ; base-4 constants for shuffles

Completed in 44 milliseconds