Searched defs:swizzles (Results 1 - 16 of 16) sorted by relevance

/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_program.h32 * EXT_texture_swizzle and DEPTH_TEXTURE_MODE swizzles.
34 uint16_t swizzles[MAX_SAMPLERS]; member in struct:brw_sampler_prog_key_data
H A Dbrw_vec4.cpp35 * Common helper for constructing swizzles. When only a subset of
118 int swizzles[4]; local
126 swizzles[next_chan++] = last = i;
130 swizzles[next_chan] = last;
133 this->swizzle = BRW_SWIZZLE4(swizzles[0], swizzles[1],
134 swizzles[2], swizzles[3]);
H A Dbrw_wm_surface_state.c665 int swizzles[SWIZZLE_NIL + 1] = { local
679 swizzles[0] = SWIZZLE_ZERO;
680 swizzles[1] = SWIZZLE_ZERO;
681 swizzles[2] = SWIZZLE_ZERO;
682 swizzles[3] = SWIZZLE_X;
685 swizzles[0] = SWIZZLE_X;
686 swizzles[1] = SWIZZLE_X;
687 swizzles[2] = SWIZZLE_X;
688 swizzles[3] = SWIZZLE_ONE;
691 swizzles[
[all...]
H A Dbrw_vec4_visitor.cpp1383 /* Note that this is only swizzles in expressions, not those on the left
1537 * swizzles in it and write swizzles using writemask, though.
1662 /* emit_block_move doesn't account for swizzles in the source register.
1687 int swizzles[4]; local
1710 swizzles[i] = BRW_GET_SWZ(src.swizzle, src_chan++);
1712 swizzles[i] = first_enabled_chan;
1714 src.swizzle = BRW_SWIZZLE4(swizzles[0], swizzles[1],
1715 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/functional/
H A Des3fTextureSwizzleTests.cpp268 } swizzles[] = local
300 // All swizzles applied to each channel.
305 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++)
307 if (swizzles[swzNdx].swizzle == defaultSwizzles[chanNdx])
310 string name = string(channels[chanNdx].name) + "_" + swizzles[swzNdx].name;
311 deUint32 swz = swizzles[swzNdx].swizzle;
/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/gallium/auxiliary/gallivm/
H A Dlp_bld_format_aos.c65 unsigned char swizzles[4]; local
87 swizzles[chan] = swizzle;
90 return lp_build_swizzle_aos(bld, unswizzled, swizzles);
95 * Whether the format matches the vector type, apart of swizzles.
270 LLVMValueRef swizzles[4]; local
291 swizzles[i] = lp_build_const_int32(gallivm, j);
293 swizzles[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context));
298 LLVMConstVector(swizzles, 4), "");
H A Dlp_bld_swizzle.c253 const unsigned char swizzles[4])
260 if (swizzles[0] == PIPE_SWIZZLE_RED &&
261 swizzles[1] == PIPE_SWIZZLE_GREEN &&
262 swizzles[2] == PIPE_SWIZZLE_BLUE &&
263 swizzles[3] == PIPE_SWIZZLE_ALPHA) {
267 if (swizzles[0] == swizzles[1] &&
268 swizzles[1] == swizzles[2] &&
269 swizzles[
251 lp_build_swizzle_aos(struct lp_build_context *bld, LLVMValueRef a, const unsigned char swizzles[4]) argument
470 lp_build_swizzle_soa(struct lp_build_context *bld, const LLVMValueRef *unswizzled, const unsigned char swizzles[4], LLVMValueRef *swizzled) argument
492 lp_build_swizzle_soa_inplace(struct lp_build_context *bld, LLVMValueRef *values, const unsigned char swizzles[4]) argument
[all...]
H A Dlp_bld_sample.h278 unsigned char swizzles[4]; local
280 swizzles[0] = bld->static_state->swizzle_r;
281 swizzles[1] = bld->static_state->swizzle_g;
282 swizzles[2] = bld->static_state->swizzle_b;
283 swizzles[3] = bld->static_state->swizzle_a;
285 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_
983 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_tgsi.h229 const unsigned char swizzles[4],
442 * - swizzles[0] = red index
443 * - swizzles[1] = green index
444 * - swizzles[2] = blue index
445 * - swizzles[3] = alpha index
447 unsigned char swizzles[4]; member in struct:lp_build_tgsi_aos_context
H A Dlp_bld_tgsi_soa.c863 unsigned char swizzles[4]; local
875 swizzles[0] = inst->Predicate.SwizzleX;
876 swizzles[1] = inst->Predicate.SwizzleY;
877 swizzles[2] = inst->Predicate.SwizzleZ;
878 swizzles[3] = inst->Predicate.SwizzleW;
884 unsigned swizzle = swizzles[chan];
888 * in the swizzles
/external/mesa3d/src/gallium/drivers/radeon/
H A Dradeon_setup_tgsi_llvm.c68 LLVMValueRef swizzles[4]; local
72 swizzles[0] = LLVMConstInt(i32t, swizzle_x, 0);
73 swizzles[1] = LLVMConstInt(i32t, swizzle_y, 0);
74 swizzles[2] = LLVMConstInt(i32t, swizzle_z, 0);
75 swizzles[3] = LLVMConstInt(i32t, swizzle_w, 0);
80 LLVMConstVector(swizzles, 4), "");
/external/mesa3d/src/mesa/program/
H A Dir_to_mesa.cpp97 GLuint swizzle; /**< SWIZZLE_XYZWONEZERO swizzles from Mesa. */
1481 /* Note that this is only swizzles in expressions, not those on the left
1676 * swizzles in it and write swizzles using writemask, though.
1794 int swizzles[4]; local
1816 swizzles[i] = GET_SWZ(r.swizzle, rhs_chan++);
1818 swizzles[i] = first_enabled_chan;
1820 r.swizzle = MAKE_SWIZZLE4(swizzles[0], swizzles[1],
1821 swizzles[
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_glsl_to_tgsi.cpp139 GLuint swizzle; /**< SWIZZLE_XYZWONEZERO swizzles from Mesa. */
1901 /* Note that this is only swizzles in expressions, not those on the left
2104 * swizzles in it and write swizzles using writemask, though.
2223 int swizzles[4]; local
2244 swizzles[i] = GET_SWZ(r.swizzle, rhs_chan++);
2246 swizzles[i] = first_enabled_chan;
2248 r.swizzle = MAKE_SWIZZLE4(swizzles[0], swizzles[1],
2249 swizzles[
[all...]

Completed in 328 milliseconds