Lines Matching defs:mask
139 if (!(ins->mask & (1 << c))) continue;
203 mir_round_bytemask_up(uint16_t mask, unsigned bits)
212 if (mask & submask)
213 mask |= submask;
216 return mask;
219 /* Grabs the per-byte mask of an instruction (as opposed to per-component) */
225 return pan_to_bytemask(type_size, ins->mask);
232 ins->mask = mir_from_bytemask(bytemask, type_size);
261 unsigned zeroes = __builtin_ctz(ins->mask);
267 /* Creates a mask of the components of a node read by an instruction, by
268 * analyzing the swizzle with respect to the instruction's mask. E.g.:
272 * will return a mask of Z/Y for r2
296 * their mask. Texture/ldst does not so we don't clamp source
309 qmask = ins->mask;
319 uint16_t mask = 0;
326 mask |= mir_bytemask_of_read_components_index(ins, i);
329 return mask;