Lines Matching refs:swiz
61 ir_swizzle *swiz = (*rvalue)->as_swizzle(); in handle_rvalue() local
63 if (!swiz) in handle_rvalue()
68 while ((swiz2 = swiz->val->as_swizzle()) != NULL) { in handle_rvalue()
81 if (swiz->mask.num_components >= 1) in handle_rvalue()
82 swiz->mask.x = mask2[swiz->mask.x]; in handle_rvalue()
83 if (swiz->mask.num_components >= 2) in handle_rvalue()
84 swiz->mask.y = mask2[swiz->mask.y]; in handle_rvalue()
85 if (swiz->mask.num_components >= 3) in handle_rvalue()
86 swiz->mask.z = mask2[swiz->mask.z]; in handle_rvalue()
87 if (swiz->mask.num_components >= 4) in handle_rvalue()
88 swiz->mask.w = mask2[swiz->mask.w]; in handle_rvalue()
90 swiz->val = swiz2->val; in handle_rvalue()
95 if (swiz->type != swiz->val->type) in handle_rvalue()
98 int elems = swiz->val->type->vector_elements; in handle_rvalue()
99 if (swiz->mask.x != 0) in handle_rvalue()
101 if (elems >= 2 && swiz->mask.y != 1) in handle_rvalue()
103 if (elems >= 3 && swiz->mask.z != 2) in handle_rvalue()
105 if (elems >= 4 && swiz->mask.w != 3) in handle_rvalue()
109 *rvalue = swiz->val; in handle_rvalue()