Searched refs:swiz_idx (Results 1 – 3 of 3) sorted by relevance
724 const unsigned swiz_idx[4] = { in constant_expression_value() local731 case GLSL_TYPE_INT: data.u[i] = v->value.u[swiz_idx[i]]; break; in constant_expression_value()732 case GLSL_TYPE_FLOAT: data.f[i] = v->value.f[swiz_idx[i]]; break; in constant_expression_value()733 case GLSL_TYPE_BOOL: data.b[i] = v->value.b[swiz_idx[i]]; break; in constant_expression_value()734 case GLSL_TYPE_DOUBLE:data.d[i] = v->value.d[swiz_idx[i]]; break; in constant_expression_value()735 case GLSL_TYPE_UINT64:data.u64[i] = v->value.u64[swiz_idx[i]]; break; in constant_expression_value()736 case GLSL_TYPE_INT64: data.i64[i] = v->value.i64[swiz_idx[i]]; break; in constant_expression_value()
1613 int swiz_idx[4] = { 0, 0, 0, 0 }; in create() local1633 swiz_idx[i] = idx_map[str[i] - 'a'] - base; in create()1634 if ((swiz_idx[i] < 0) || (swiz_idx[i] >= (int) vector_length)) in create()1641 return new(ctx) ir_swizzle(val, swiz_idx[0], swiz_idx[1], swiz_idx[2], in create()1642 swiz_idx[3], i); in create()
447 unsigned swiz_idx) in get_imm_u32() argument450 unsigned int idx = imm->reg * 4 + ((imm->swiz >> (swiz_idx * 2)) & 3); in get_imm_u32()