Lines Matching defs:swizzle
54 unsigned num_components, const uint8_t *swizzle,
258 unsigned num_components, const uint8_t *swizzle,
273 * both the number of components and the swizzle.
277 swizzle = identity_swizzle;
281 new_swizzle[i] = instr->src[src].swizzle[swizzle[i]];
308 if (state->variables[var->variable].swizzle[i] != new_swizzle[i])
333 state->variables[var->variable].swizzle[i] = new_swizzle[i];
335 state->variables[var->variable].swizzle[i] = 0;
395 unsigned num_components, const uint8_t *swizzle,
419 * identity swizzle. While dot(vec3(a, b, c).zxy) is a valid
421 * swizzle through. We can only properly propagate swizzles if the
426 if (swizzle[i] != i)
447 num_components, swizzle, state)) {
519 memcpy(val.swizzle, identity_swizzle, sizeof val.swizzle);
533 val.swizzle[i] = state->variables[var->variable].swizzle[var->swizzle[i]];
571 memset(val.swizzle, 0, sizeof val.swizzle);
697 uint8_t swizzle[NIR_MAX_VEC_COMPONENTS] = { 0 };
700 swizzle[i] = i;
726 swizzle, &state)) {
767 * in vector mode. A move instruction to handle the swizzle will get