Home
last modified time | relevance | path

Searched refs:swiz_idx (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/compiler/glsl/
Dir_constant_expression.cpp887 const unsigned swiz_idx[4] = { in constant_expression_value() local
894 case GLSL_TYPE_INT16: data.u16[i] = v->value.u16[swiz_idx[i]]; break; in constant_expression_value()
896 case GLSL_TYPE_INT: data.u[i] = v->value.u[swiz_idx[i]]; break; in constant_expression_value()
897 case GLSL_TYPE_FLOAT: data.f[i] = v->value.f[swiz_idx[i]]; break; in constant_expression_value()
898 case GLSL_TYPE_FLOAT16: data.f16[i] = v->value.f16[swiz_idx[i]]; break; in constant_expression_value()
899 case GLSL_TYPE_BOOL: data.b[i] = v->value.b[swiz_idx[i]]; break; in constant_expression_value()
900 case GLSL_TYPE_DOUBLE:data.d[i] = v->value.d[swiz_idx[i]]; break; in constant_expression_value()
901 case GLSL_TYPE_UINT64:data.u64[i] = v->value.u64[swiz_idx[i]]; break; in constant_expression_value()
902 case GLSL_TYPE_INT64: data.i64[i] = v->value.i64[swiz_idx[i]]; break; in constant_expression_value()
Dir.cpp1942 int swiz_idx[4] = { 0, 0, 0, 0 }; in create() local
1962 swiz_idx[i] = idx_map[str[i] - 'a'] - base; in create()
1963 if ((swiz_idx[i] < 0) || (swiz_idx[i] >= (int) vector_length)) in create()
1970 return new(ctx) ir_swizzle(val, swiz_idx[0], swiz_idx[1], swiz_idx[2], in create()
1971 swiz_idx[3], i); in create()