Lines Matching defs:vector_elements
97 rhs_swiz.num_components = swiz->val->type->vector_elements;
138 const unsigned mask = (1U << v->type->vector_elements) - 1;
166 assert(lhs_components == this->rhs->type->vector_elements);
185 this->write_mask = (1U << rhs->type->vector_elements) - 1;
276 op0->type->vector_elements, 1);
288 op0->type->vector_elements, 1);
296 op0->type->vector_elements, 1);
305 op0->type->vector_elements, 1);
315 op0->type->vector_elements, 1);
325 op0->type->vector_elements, 1);
334 op0->type->vector_elements, 1);
395 op0->type->vector_elements, 1);
406 op0->type->vector_elements, 1);
411 op0->type->vector_elements, 1);
415 op0->type->vector_elements, 1);
482 assert(op0->type->vector_elements == op1->type->vector_elements);
493 op0->type->vector_elements, 1);
643 ir_constant::ir_constant(float f, unsigned vector_elements)
646 assert(vector_elements <= 4);
647 this->type = glsl_type::get_instance(GLSL_TYPE_FLOAT, vector_elements, 1);
648 for (unsigned i = 0; i < vector_elements; i++) {
651 for (unsigned i = vector_elements; i < 16; i++) {
656 ir_constant::ir_constant(double d, unsigned vector_elements)
659 assert(vector_elements <= 4);
660 this->type = glsl_type::get_instance(GLSL_TYPE_DOUBLE, vector_elements, 1);
661 for (unsigned i = 0; i < vector_elements; i++) {
664 for (unsigned i = vector_elements; i < 16; i++) {
669 ir_constant::ir_constant(unsigned int u, unsigned vector_elements)
672 assert(vector_elements <= 4);
673 this->type = glsl_type::get_instance(GLSL_TYPE_UINT, vector_elements, 1);
674 for (unsigned i = 0; i < vector_elements; i++) {
677 for (unsigned i = vector_elements; i < 16; i++) {
682 ir_constant::ir_constant(int integer, unsigned vector_elements)
685 assert(vector_elements <= 4);
686 this->type = glsl_type::get_instance(GLSL_TYPE_INT, vector_elements, 1);
687 for (unsigned i = 0; i < vector_elements; i++) {
690 for (unsigned i = vector_elements; i < 16; i++) {
695 ir_constant::ir_constant(uint64_t u64, unsigned vector_elements)
698 assert(vector_elements <= 4);
699 this->type = glsl_type::get_instance(GLSL_TYPE_UINT64, vector_elements, 1);
700 for (unsigned i = 0; i < vector_elements; i++) {
703 for (unsigned i = vector_elements; i < 16; i++) {
708 ir_constant::ir_constant(int64_t int64, unsigned vector_elements)
711 assert(vector_elements <= 4);
712 this->type = glsl_type::get_instance(GLSL_TYPE_INT64, vector_elements, 1);
713 for (unsigned i = 0; i < vector_elements; i++) {
716 for (unsigned i = vector_elements; i < 16; i++) {
721 ir_constant::ir_constant(bool b, unsigned vector_elements)
724 assert(vector_elements <= 4);
725 this->type = glsl_type::get_instance(GLSL_TYPE_BOOL, vector_elements, 1);
726 for (unsigned i = 0; i < vector_elements; i++) {
729 for (unsigned i = vector_elements; i < 16; i++) {
792 this->value.f[i * type->vector_elements + i] =
795 this->value.d[i * type->vector_elements + i] =
844 unsigned rows = MIN2(type->vector_elements, value->type->vector_elements);
847 const unsigned src = i * value->type->vector_elements + j;
848 const unsigned dst = i * type->vector_elements + j;
855 this->value.f[i * type->vector_elements + i] = 1.0;
1295 for (unsigned c = 0; c < this->type->vector_elements; c++) {
1514 assert(type->vector_elements == 2);
1523 assert(type->vector_elements == 4 || type->vector_elements == 1);
1525 assert(type->vector_elements == 4);