Lines Matching refs:swiz
72 get_swiz(unsigned *swiz, const struct tgsi_src_register *src)
74 swiz[0] = src->SwizzleX;
75 swiz[1] = src->SwizzleY;
76 swiz[2] = src->SwizzleZ;
77 swiz[3] = src->SwizzleW;
85 unsigned swiz[4];
86 get_swiz(swiz, &orig_src->Register);
88 src->Register.SwizzleX = swiz[sx];
89 src->Register.SwizzleY = swiz[sy];
90 src->Register.SwizzleZ = swiz[sz];
91 src->Register.SwizzleW = swiz[sw];
95 #define SWIZ(x,y,z,w) TGSI_SWIZZLE_ ## x, TGSI_SWIZZLE_ ## y, \
266 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, _));
267 reg_src(&inst.Src[1], &ctx->imm[3], SWIZ(X, Y, Z, _));
274 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
275 reg_src(&inst.Src[1], &ctx->imm[0], SWIZ(X, Y, Z, W));
281 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
282 reg_src(&inst.Src[1], &ctx->imm[1], SWIZ(X, Y, Z, W));
288 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W));
289 reg_src(&inst.Src[1], &ctx->imm[2], SWIZ(X, Y, Z, W));
295 reg_src(&inst.Src[0], &ctx->imm[3], SWIZ(_, _, _, W));
313 reg_src(&inst.Src[0], coord, SWIZ(X, Y, Z, W));
322 reg_src(&inst.Src[0], coord, SWIZ(X, Y, Z, W));
327 reg_src(&inst.Src[0], &ctx->tmp[B].src, SWIZ(_, X, Y, _));
348 reg_src(&inst.Src[0], coord, SWIZ(X, Y, Z, W));
357 reg_src(&inst.Src[0], coord, SWIZ(X, Y, Z, W));
362 reg_src(&inst.Src[0], &ctx->tmp[B].src, SWIZ(_, X, _, _));
371 reg_src(&inst.Src[0], coord, SWIZ(X, Y, Z, W));
376 reg_src(&inst.Src[0], &ctx->tmp[B].src, SWIZ(_, _, X, _));