Home | History | Annotate | Download | only in tgsi

Lines Matching refs:swiz

76 get_swiz(unsigned *swiz, const struct tgsi_src_register *src)
78 swiz[0] = src->SwizzleX;
79 swiz[1] = src->SwizzleY;
80 swiz[2] = src->SwizzleZ;
81 swiz[3] = src->SwizzleW;
89 unsigned swiz[4];
90 get_swiz(swiz, &orig_src->Register);
92 src->Register.SwizzleX = swiz[sx];
93 src->Register.SwizzleY = swiz[sy];
94 src->Register.SwizzleZ = swiz[sz];
95 src->Register.SwizzleW = swiz[sw];
99 #define SWIZ(x,y,z,w) TGSI_SWIZZLE_ ## x, TGSI_SWIZZLE_ ## y, \
118 unsigned swiz[4];
119 get_swiz(swiz, &src->Register);
122 actual_mask |= (1 << swiz[i]);
143 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W));
222 reg_src(&new_inst.Src[0], src0, SWIZ(_, Y, _, _));
223 reg_src(&new_inst.Src[1], src1, SWIZ(_, Y, _, _));
234 reg_src(&new_inst.Src[0], src0, SWIZ(_, _, Z, _));
245 reg_src(&new_inst.Src[0], src1, SWIZ(_, _, _, W));
256 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(Y, _, _, _));
291 reg_src(&new_inst.Src[0], src1, SWIZ(Y, Z, X, _));
292 reg_src(&new_inst.Src[1], src0, SWIZ(Z, X, Y, _));
301 reg_src(&new_inst.Src[0], src0, SWIZ(Y, Z, X, _));
302 reg_src(&new_inst.Src[1], src1, SWIZ(Z, X, Y, _));
303 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, Y, Z, _));
315 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(_, _, _, Y));
358 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _));
369 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _));
380 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(_, _, X, Y));
418 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W));
419 reg_src(&new_inst.Src[1], src2, SWIZ(X, Y, Z, W));
420 reg_src(&new_inst.Src[2], src2, SWIZ(X, Y, Z, W));
430 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W));
431 reg_src(&new_inst.Src[1], src1, SWIZ(X, Y, Z, W));
432 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
466 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W));
475 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W));
476 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
512 reg_src(&new_inst.Src[0], src0, SWIZ(X, _, _, _));
521 reg_src(&new_inst.Src[0], src1, SWIZ(X, _, _, _));
522 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, _, _, _));
531 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(X, _, _, _));
571 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, _, _));
572 reg_src(&new_inst.Src[1], &ctx->imm, SWIZ(X, X, _, _));
581 reg_src(&new_inst.Src[0], src, SWIZ(_, _, W, _));
582 reg_src(&new_inst.Src[1], &ctx->imm, SWIZ(_, _, Z, _));
584 reg_src(&new_inst.Src[2], &ctx->imm, SWIZ(_, _, Z, _));
593 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Y, _, _, _));
602 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, Z, _, _));
603 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, Y, _, _));
612 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Y, _, _, _));
621 reg_src(&new_inst.Src[0], src, SWIZ(_, X, _, _));
623 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, Y, _, _));
624 reg_src(&new_inst.Src[2], &ctx->imm, SWIZ(_, X, _, _));
633 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, X, Y, _));
644 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(Y, _, _, Y));
688 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _));
697 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _));
698 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, _, _, _));
708 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _));
720 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _));
731 reg_src(&new_inst.Src[0], src, SWIZ(_, X, _, _));
732 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, X, _, _));
744 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(X, _, _, _));
755 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, _, Y, _));
766 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(_, _, _, Y));
810 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _));
823 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, X, _, _));
832 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, X, _, _));
833 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, Y, _, _));
843 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, X, _, _));
855 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Y, _, _, _));
864 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Z, _, _, _));
873 reg_src(&new_inst.Src[0], src, SWIZ(_, X, _, _));
875 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, Z, _, _));
886 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Y, _, X, _));
897 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(_, _, _, Y));
967 reg_src(&new_inst.Src[0], src0, SWIZ(X, _, _, _));
968 reg_src(&new_inst.Src[1], src1, SWIZ(X, _, _, _));
977 reg_src(&new_inst.Src[0], src0, SWIZ(Y, Y, Y, Y));
978 reg_src(&new_inst.Src[1], src1, SWIZ(Y, Y, Y, Y));
979 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, X, X, X));
992 reg_src(&new_inst.Src[0], src0, SWIZ(Z, Z, Z, Z));
993 reg_src(&new_inst.Src[1], src1, SWIZ(Z, Z, Z, Z));
994 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, X, X, X));
1005 reg_src(&new_inst.Src[0], src1, SWIZ(W, W, W, W));
1006 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, X, X, X));
1016 reg_src(&new_inst.Src[0], src0, SWIZ(W, W, W, W));
1017 reg_src(&new_inst.Src[1], src1, SWIZ(W, W, W, W));
1018 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, X, X, X));
1029 reg_src(&new_inst.Src[0], src2, SWIZ(X, X, X, X));
1030 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, X, X, X));
1071 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W));
1083 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W));
1084 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
1124 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W));
1134 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W));
1137 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
1146 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W));
1157 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W));
1158 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
1160 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
1275 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(W, _, _, _));
1284 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
1285 reg_src(&new_inst.Src[1], &ctx->tmp[B].src, SWIZ(X, X, X, X));