Home | History | Annotate | Download | only in glsl

Lines Matching refs:operation

192    if (expr0 && expr0->operation == ir_binop_add &&
194 expr1 && expr1->operation == ir_binop_add &&
257 if (!ir2 || ir1->operation != ir2->operation)
320 if (ir->operation == ir_binop_mul &&
325 if (matrix_mul && matrix_mul->operation == ir_binop_mul &&
347 switch (ir->operation) {
349 if (op_expr[0] && op_expr[0]->operation == ir_unop_bit_not)
357 switch (op_expr[0]->operation) {
370 if (op_expr[0]->operation == ir_unop_neg) {
379 if (op_expr[0]->operation == ir_unop_log) {
388 if (op_expr[0]->operation == ir_unop_exp) {
397 if (op_expr[0]->operation == ir_unop_log2) {
401 if (!options->EmitNoPow && op_expr[0]->operation == ir_binop_mul) {
406 if (log2_expr && log2_expr->operation == ir_unop_log2) {
420 if (op_expr[0]->operation == ir_unop_exp2) {
427 if (op_expr[0] && op_expr[0]->operation == ir_unop_trunc) {
428 return new(mem_ctx) ir_expression(ir->operation,
440 switch (op_expr[0]->operation) {
465 if (op_expr[0] && op_expr[0]->operation == ir_binop_add) {
469 if (b2f_0 && b2f_0->operation == ir_unop_b2f &&
470 b2f_1 && b2f_1->operation == ir_unop_b2f) {
484 if (op->operation == (inverse_operation)) \
513 if (op_expr[i]->operation == ir_unop_neg) {
549 if (!mul || mul->operation != ir_binop_mul)
553 * inner addition operation.
559 if (!inner_add || inner_add->operation != ir_binop_add)
570 if (!neg || neg->operation != ir_unop_neg)
613 if (op_expr[0] && op_expr[0]->operation == ir_unop_b2f &&
614 op_expr[1] && op_expr[1]->operation == ir_unop_b2f) {
638 if (!sign_expr || sign_expr->operation != ir_unop_sign ||
639 !floor_expr || floor_expr->operation != ir_unop_floor)
643 if (!add_expr || add_expr->operation != ir_binop_add)
648 if (!abs_expr || abs_expr->operation != ir_unop_abs)
717 if (!add || add->operation != ir_binop_add)
734 return new(mem_ctx) ir_expression(ir->operation,
738 return new(mem_ctx) ir_expression(ir->operation,
749 return new(mem_ctx) ir_expression(ir->operation == ir_binop_all_equal
772 } else if (op_expr[0] && op_expr[0]->operation == ir_unop_logic_not &&
773 op_expr[1] && op_expr[1]->operation == ir_unop_logic_not) {
812 } else if (op_expr[0] && op_expr[0]->operation == ir_unop_logic_not &&
813 op_expr[1] && op_expr[1]->operation == ir_unop_logic_not) {
868 * a saturate operation
873 ir_expression_operation op_cond = (ir->operation == ir_binop_max) ?
876 if (!inner_expr || !outer_const || (inner_expr->operation != op_cond))
885 * meet our conditions that we can do just a single saturate operation
896 if (ir->operation == ir_binop_min &&
902 if (ir->operation == ir_binop_max &&
908 if (ir->operation == ir_binop_min &&
914 if (ir->operation == ir_binop_max &&
920 if (ir->operation == ir_binop_max &&
926 if (ir->operation == ir_binop_min &&
936 if (op_expr[0] && op_expr[0]->operation == ir_unop_rcp)
939 if (op_expr[0] && (op_expr[0]->operation == ir_unop_exp2 ||
940 op_expr[0]->operation == ir_unop_exp)) {
941 return new(mem_ctx) ir_expression(op_expr[0]->operation, ir->type,
948 if (op_expr[0] && op_expr[0]->operation == ir_unop_rsq)
952 if (op_expr[0] && op_expr[0]->operation == ir_unop_sqrt) {
1032 if (!expr || expr->operation == ir_quadop_vector)