Lines Matching refs:swiz
320 char swiz[5];
348 swiz[0] = (dst->WriteMask & TGSI_WRITEMASK_X) ? 'x' : '_';
349 swiz[1] = (dst->WriteMask & TGSI_WRITEMASK_Y) ? 'y' : '_';
350 swiz[2] = (dst->WriteMask & TGSI_WRITEMASK_Z) ? 'z' : '_';
351 swiz[3] = (dst->WriteMask & TGSI_WRITEMASK_W) ? 'w' : '_';
352 swiz[4] = '\0';
354 return ir2_reg_create(alu, num, swiz, flags);
364 char swiz[5];
399 swiz[0] = swiz_vals[src->SwizzleX];
400 swiz[1] = swiz_vals[src->SwizzleY];
401 swiz[2] = swiz_vals[src->SwizzleZ];
402 swiz[3] = swiz_vals[src->SwizzleW];
403 swiz[4] = '\0';
411 return ir2_reg_create(alu, num, swiz, flags);
642 unsigned neg, swiz, idx, i;
649 swiz = i % 4;
652 if (ctx->so->immediates[idx].val[swiz] == val) {
657 if (ctx->so->immediates[idx].val[swiz] == -val) {
665 swiz = i % 4;
668 ctx->so->immediates[idx].val[swiz] = val;
679 reg->SwizzleX = swiz2tgsi[swiz];
680 reg->SwizzleY = swiz2tgsi[swiz];
681 reg->SwizzleZ = swiz2tgsi[swiz];
682 reg->SwizzleW = swiz2tgsi[swiz];
752 static const char *swiz[] = {
779 swiz[inst->Src[0].Register.SwizzleW];