Lines Matching defs:mask
96 component_from_mask(unsigned mask)
99 if (mask & (1 << c))
129 unsigned comp = component_from_mask(ins->mask);
136 /* The output component is from the mask */
199 unsigned effective = ins->mask;
202 * override to the lower or upper half, shifting the effective mask in
218 alu->mask = expand_writemask(effective, 2);
220 alu->mask = expand_writemask(effective, 1);
222 alu->mask = effective;
226 mir_pack_swizzle(unsigned mask, unsigned *swizzle,
246 assert(!(mask & ~0xf));
247 assert(!(mask & 0x3) || !(mask & 0xc));
249 if (mask > 3)
250 mask >>= 2;
252 if (mask & 0x1) {
254 if (mask & 2)
273 unsigned first = mask ? ffs(mask) - 1 : 0;
276 if (upper && mask)
288 if (mask & (1 << c)) {
348 unsigned swizzle = mir_pack_swizzle(ins->mask, ins->swizzle[i],
462 * For most operations, vec4 is the natural mask width; vec8 is constrained to
504 unsigned packed = ins->mask;
510 packed = ((ins->mask & 0x2) ? (0x8 | 0x4) : 0) |
511 ((ins->mask & 0x1) ? (0x2 | 0x1) : 0);
518 unsigned submask = (ins->mask >> (i * comps_per_32b)) &
530 ins->load_store.mask = packed;
1033 ins->texture.mask = override > 0 ?
1034 ins->mask >> override :
1035 ins->mask;