Lines Matching defs:swizzle
1667 static void vop3p_constant(unsigned *idx, aco_opcode op, const char *swizzle, uint32_t val)
1670 uint32_t expected = halves[swizzle[0] - 'x'] | (halves[swizzle[1] - 'x'] << 16);
1673 unsigned opsel_lo = swizzle[0] == 'x' ? 0x0 : 0x1;
1674 unsigned opsel_hi = swizzle[1] == 'x' ? 0x2 : 0x3;
1681 for (const char *swizzle : {"xx", "yy", "xy", "yx"}) {
1685 strcat(variant, swizzle);
1713 //; swizzle = lambda v: v
1715 //; swizzle = lambda v: ((v & 0xffff) | (v << 16)) & 0xffffffff;
1717 //; swizzle = lambda v: (v >> 16) | (v & 0xffff0000);
1719 //; swizzle = lambda v: ((v >> 16) | (v << 16)) & 0xffffffff;
1732 //; return mods(swizzle(val))
1762 vop3p_constant(&idx, op, swizzle, constant);
1763 vop3p_constant(&idx, op, swizzle, constant | 0xffff0000);
1764 vop3p_constant(&idx, op, swizzle, constant | (constant << 16));
1765 vop3p_constant(&idx, op, swizzle, constant << 16);
1766 vop3p_constant(&idx, op, swizzle, (constant << 16) | 0x0000ffff);
1767 vop3p_constant(&idx, op, swizzle, constant | ((constant ^ 0x8000) << 16));
1768 vop3p_constant(&idx, op, swizzle, (constant ^ 0x8000) | (constant << 16));
1774 vop3p_constant(&idx, op, swizzle, constant);
1775 vop3p_constant(&idx, op, swizzle, hi | (lo << 16));