Home | History | Annotate | Download | only in glsl

Lines Matching refs:vector_elements

162       if (type->vector_elements <= 1) {
165 return llvm::VectorType::get(base_type, type->vector_elements);
510 if(ir->operands[0]->type->vector_elements <= 1 && ir->operands[1]->type->vector_elements > 1)
515 else if(ir->operands[0]->type->vector_elements > 1 && ir->operands[1]->type->vector_elements <= 1)
521 assert(ir->operands[0]->type->vector_elements == ir->operands[1]->type->vector_elements);
527 for(unsigned i = 0; i < ir->operands[vecidx]->type->vector_elements; ++i)
553 return create_select(ir->operands[0]->type->vector_elements,
557 return create_select(ir->operands[0]->type->vector_elements,
631 value = create_dot_product(value, ops[0], ir->operands[1]->type->base_type, ir->operands[1]->type->vector_elements);
762 return create_dot_product(ops[0], ops[1], ir->operands[0]->type->base_type, ir->operands[0]->type->vector_elements);
764 // assert(ir->operands[0]->type->vector_elements == 3);
1158 for (unsigned j = 0; j < ir->type->vector_elements; ++j) {
1180 if(ir->type->vector_elements > 1) {
1279 unsigned width = ir->lhs->type->vector_elements;
1292 if (ir->rhs->type->vector_elements < width) {
1294 for (unsigned i = 0; i < ir->lhs->type->vector_elements; ++i)
1296 // printf("ve: %u w %u issw: %i\n", ir->rhs->type->vector_elements, width, !!ir->rhs->as_swizzle());