Searched refs:swizzles (Results 1 - 25 of 40) sorted by relevance

12

/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_swizzle.h83 * @param swizzles is the in [0,4[ range.
88 const unsigned char swizzles[4]);
94 const unsigned char* swizzles,
108 const unsigned char swizzles[4],
115 const unsigned char swizzles[4]);
H A Dlp_bld_swizzle.c320 * e.g. with swizzles = { 2, 1, 0 } and swizzle_count = 6 results in
323 * @param swizzles the swizzle array
324 * @param num_swizzles the number of elements in swizzles
330 const unsigned char* swizzles,
341 int swizzle = swizzles[i % num_swizzles];
357 const unsigned char swizzles[4])
364 if (swizzles[0] == PIPE_SWIZZLE_X &&
365 swizzles[1] == PIPE_SWIZZLE_Y &&
366 swizzles[2] == PIPE_SWIZZLE_Z &&
367 swizzles[
328 lp_build_swizzle_aos_n(struct gallivm_state* gallivm, LLVMValueRef src, const unsigned char* swizzles, unsigned num_swizzles, unsigned dst_len) argument
355 lp_build_swizzle_aos(struct lp_build_context *bld, LLVMValueRef a, const unsigned char swizzles[4]) argument
602 lp_build_swizzle_soa(struct lp_build_context *bld, const LLVMValueRef *unswizzled, const unsigned char swizzles[4], LLVMValueRef *swizzled) argument
624 lp_build_swizzle_soa_inplace(struct lp_build_context *bld, LLVMValueRef *values, const unsigned char swizzles[4]) argument
[all...]
H A Dlp_bld_sample.h417 unsigned char swizzles[4]; local
419 swizzles[0] = bld->static_texture_state->swizzle_r;
420 swizzles[1] = bld->static_texture_state->swizzle_g;
421 swizzles[2] = bld->static_texture_state->swizzle_b;
422 swizzles[3] = bld->static_texture_state->swizzle_a;
424 lp_build_swizzle_soa_inplace(&bld->texel_bld, texel, swizzles);
H A Dlp_bld_tgsi_aos.c63 * Wrapper around lp_build_swizzle_aos which translates swizzles to another
74 unsigned char swizzles[4]; local
82 swizzles[bld->inv_swizzles[0]] = bld->swizzles[swizzle_x];
83 swizzles[bld->inv_swizzles[1]] = bld->swizzles[swizzle_y];
84 swizzles[bld->inv_swizzles[2]] = bld->swizzles[swizzle_z];
85 swizzles[bld->inv_swizzles[3]] = bld->swizzles[swizzle_
941 lp_build_tgsi_aos(struct gallivm_state *gallivm, const struct tgsi_token *tokens, struct lp_type type, const unsigned char swizzles[4], LLVMValueRef consts_ptr, const LLVMValueRef *inputs, LLVMValueRef *outputs, struct lp_build_sampler_aos *sampler, const struct tgsi_shader_info *info) argument
[all...]
H A Dlp_bld_format_aos.c70 unsigned char swizzles[4]; local
92 swizzles[chan] = swizzle;
95 return lp_build_swizzle_aos(bld, unswizzled, swizzles);
100 * Whether the format matches the vector type, apart of swizzles.
371 LLVMValueRef swizzles[4]; local
391 swizzles[i] = lp_build_const_int32(gallivm, j);
393 swizzles[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context));
398 LLVMConstVector(swizzles, 4), "");
H A Dlp_bld_tgsi.h240 const unsigned char swizzles[4],
536 * - swizzles[0] = red index
537 * - swizzles[1] = green index
538 * - swizzles[2] = blue index
539 * - swizzles[3] = alpha index
541 unsigned char swizzles[4]; member in struct:lp_build_tgsi_aos_context
H A Dlp_bld_tgsi_soa.c1748 unsigned char swizzles[4]; local
1760 swizzles[0] = inst->Predicate.SwizzleX;
1761 swizzles[1] = inst->Predicate.SwizzleY;
1762 swizzles[2] = inst->Predicate.SwizzleZ;
1763 swizzles[3] = inst->Predicate.SwizzleW;
1769 unsigned swizzle = swizzles[chan];
1773 * in the swizzles
2525 unsigned char swizzles[4]; local
2526 swizzles[0] = inst->Src[1].Register.SwizzleX;
2527 swizzles[
2656 unsigned char swizzles[4]; local
[all...]
/external/mesa3d/src/amd/vulkan/
H A Dvk_format_table.py99 def do_channel_array(channels, swizzles):
113 def do_swizzle_array(channels, swizzles):
116 swizzle = swizzles[i]
H A Dvk_format_parse.py275 def _parse_channels(fields, layout, colorspace, swizzles):
280 swizzle = swizzles[i]
285 swizzle = swizzles[i]
/external/mesa3d/src/gallium/drivers/ilo/core/
H A Dilo_state_sbe.h79 const struct ilo_state_sbe_swizzle_info *swizzles; member in struct:ilo_state_sbe_info
H A Dilo_state_sbe.c155 &info->swizzles[i];
281 const struct ilo_state_sbe_swizzle_info *swizzle = &info->swizzles[i];
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_wm_surface_state.c301 int swizzles[SWIZZLE_NIL + 1] = { local
327 swizzles[0] = SWIZZLE_ZERO;
328 swizzles[1] = SWIZZLE_ZERO;
329 swizzles[2] = SWIZZLE_ZERO;
330 swizzles[3] = SWIZZLE_X;
333 swizzles[0] = SWIZZLE_X;
334 swizzles[1] = SWIZZLE_X;
335 swizzles[2] = SWIZZLE_X;
336 swizzles[3] = SWIZZLE_ONE;
339 swizzles[
[all...]
H A Dbrw_wm.c245 old_key->swizzles[i], key->swizzles[i]);
307 key->swizzles[s] = SWIZZLE_NOOP;
325 key->swizzles[s] = brw_get_texture_swizzle(ctx, t);
353 brw->is_haswell ? t->_Swizzle : key->swizzles[s];
357 key->swizzles[i] &= ~(0x7 << (3 * i));
358 key->swizzles[i] |= SWIZZLE_ONE << (3 * i);
H A Dbrw_nir.c683 if (key_tex->swizzles[s] == SWIZZLE_NOOP)
688 tex_options.swizzles[s][c] = GET_SWZ(key_tex->swizzles[s], c);
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format_pack.py43 def inv_swizzles(swizzles):
48 swizzle = swizzles[i]
68 def generate_bitfields(channels, swizzles):
87 def generate_full_fields(channels, swizzles):
446 def unpack_from_bitmask(channels, swizzles):
487 swizzle = swizzles[i]
509 def unpack_from_union(channels, swizzles):
514 swizzle = swizzles[i]
551 def pack_into_bitmask(channels, swizzles):
552 inv_swizzle = inv_swizzles(swizzles)
[all...]
H A Du_format_table.py97 def do_channel_array(channels, swizzles):
111 def do_swizzle_array(channels, swizzles):
114 swizzle = swizzles[i]
H A Du_format_parse.py267 def _parse_channels(fields, layout, colorspace, swizzles):
272 swizzle = swizzles[i]
277 swizzle = swizzles[i]
/external/mesa3d/src/gallium/drivers/ilo/shader/
H A Dilo_shader_vs.c575 int swizzles[4], i; local
607 swizzles[0] = vcc->variant->sampler_view_swizzles[sampler_index].r;
608 swizzles[1] = vcc->variant->sampler_view_swizzles[sampler_index].g;
609 swizzles[2] = vcc->variant->sampler_view_swizzles[sampler_index].b;
610 swizzles[3] = vcc->variant->sampler_view_swizzles[sampler_index].a;
613 swizzles[0] = PIPE_SWIZZLE_X;
614 swizzles[1] = PIPE_SWIZZLE_Y;
615 swizzles[2] = PIPE_SWIZZLE_Z;
616 swizzles[3] = PIPE_SWIZZLE_W;
623 switch (swizzles[
[all...]
H A Dilo_shader_fs.c1104 int swizzles[4], i; local
1140 swizzles[0] = fcc->variant->sampler_view_swizzles[sampler_index].r;
1141 swizzles[1] = fcc->variant->sampler_view_swizzles[sampler_index].g;
1142 swizzles[2] = fcc->variant->sampler_view_swizzles[sampler_index].b;
1143 swizzles[3] = fcc->variant->sampler_view_swizzles[sampler_index].a;
1146 swizzles[0] = PIPE_SWIZZLE_X;
1147 swizzles[1] = PIPE_SWIZZLE_Y;
1148 swizzles[2] = PIPE_SWIZZLE_Z;
1149 swizzles[3] = PIPE_SWIZZLE_W;
1154 switch (swizzles[
[all...]
/external/deqp/modules/gles2/performance/
H A Des2pTextureCases.cpp163 static const IVec4 swizzles[] = { IVec4(0,1,2,3), IVec4(1,2,3,0), IVec4(2,3,0,1), IVec4(3,0,1,2), local
165 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)];
/external/deqp/modules/gles3/performance/
H A Des3pTextureCases.cpp189 static const IVec4 swizzles[] = { IVec4(0,1,2,3), IVec4(1,2,3,0), IVec4(2,3,0,1), IVec4(3,0,1,2), local
191 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)];
/external/mesa3d/src/compiler/nir/
H A Dnir_lower_vec_to_movs.c174 /* Stash off all of the ALU instruction's swizzles. */
175 uint8_t swizzles[4][4]; local
178 swizzles[j][i] = src_alu->src[j].swizzle[i];
199 src_alu->src[j].swizzle[i] = swizzles[j][vec->src[i].swizzle[0]];
/external/deqp/modules/gles3/functional/
H A Des3fTextureSwizzleTests.cpp269 } swizzles[] = local
301 // All swizzles applied to each channel.
306 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++)
308 if (swizzles[swzNdx].swizzle == defaultSwizzles[chanNdx])
311 string name = string(channels[chanNdx].name) + "_" + swizzles[swzNdx].name;
312 deUint32 swz = swizzles[swzNdx].swizzle;
H A Des3fFramebufferBlitTests.cpp963 } swizzles[] =
982 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++)
984 string name = string(copyRects[rectNdx].name) + (swizzles[swzNdx].name ? (string("_") + swizzles[swzNdx].name) : string());
985 IVec4 srcSwz = swizzles[swzNdx].srcSwizzle;
986 IVec4 dstSwz = swizzles[swzNdx].dstSwizzle;
998 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++)
1000 string name = string("nearest_consistency_") + filterConsistencyRects[rectNdx].name + (swizzles[swzNdx].name ? (string("_") + swizzles[swzNdx].name) : string());
1001 IVec4 srcSwz = swizzles[swzNd
[all...]
/external/mesa3d/src/gallium/drivers/ilo/
H A Dilo_shader.c1115 struct ilo_state_sbe_swizzle_info swizzles[ILO_STATE_SBE_MAX_SWIZZLE_COUNT]; local
1171 assert(kernel->in.count <= ARRAY_SIZE(swizzles));
1172 dst_len = MIN2(kernel->in.count, ARRAY_SIZE(swizzles));
1174 memset(&swizzles, 0, sizeof(swizzles));
1185 info.swizzles = swizzles;
1225 swizzles[dst_slot].attr_select = GEN6_INPUTATTR_FACING;
1226 swizzles[dst_slot].attr = src_slot;
1230 swizzles[dst_slo
[all...]

Completed in 473 milliseconds

12