Home | History | Annotate | Download | only in glsl

Lines Matching refs:operands

86    if (ir->operands[0]->type->is_vector())
87 ir->type = ir->operands[0]->type;
89 ir->type = ir->operands[1]->type;
98 ir_rvalue *temp = ir2->operands[op2];
99 ir2->operands[op2] = ir1->operands[op1];
100 ir1->operands[op1] = temp;
103 * base types matched, and at least one of the operands of the 2
125 if (ir1->operands[0]->type->is_matrix() ||
126 ir1->operands[1]->type->is_matrix() ||
127 ir2->operands[0]->type->is_matrix() ||
128 ir2->operands[1]->type->is_matrix())
132 ir2_const[0] = ir2->operands[0]->constant_expression_value();
133 ir2_const[1] = ir2->operands[1]->constant_expression_value();
147 ir2->operands[0]->as_expression())) {
153 ir2->operands[1]->as_expression())) {
161 /* When eliminating an expression and just returning one of its operands,
186 if (ir->operands[i]->type->is_matrix())
189 op_const[i] = ir->operands[i]->constant_expression_value();
190 op_expr[i] = ir->operands[i]->as_expression();
223 op_expr[0]->operands[0],
224 op_expr[0]->operands[1]);
233 return swizzle_if_required(ir, ir->operands[1]);
237 return swizzle_if_required(ir, ir->operands[0]);
245 ir->operands[1]->as_expression());
248 ir->operands[0]->as_expression());
255 ir->operands[1]->type,
256 ir->operands[1],
262 return swizzle_if_required(ir, ir->operands[0]);
269 return swizzle_if_required(ir, ir->operands[1]);
273 return swizzle_if_required(ir, ir->operands[0]);
286 ir->operands[1]->as_expression());
289 ir->operands[0]->as_expression());
297 ir->operands[1]->type,
298 ir->operands[1],
304 return swizzle_if_required(ir, ir->operands[0]);
312 return ir->operands[1];
315 return ir->operands[0];
326 return ir->operands[1];
329 return ir->operands[0];
333 ir->operands[1], NULL);
337 ir->operands[0], NULL);
345 return ir->operands[1];
348 return ir->operands[0];
363 return op_expr[0]->operands[0];
375 op_expr[0]->operands[0]->type,
376 op_expr[0]->operands[0],