fixes glsl-orangebook-ch06-bump.frag.
case ir_unop_floor:
this->result = this->create_tree(MB_TERM_floor_vec4, ir, op[0], NULL);
break;
+ case ir_binop_min:
+ this->result = this->create_tree(MB_TERM_min_vec4_vec4, ir, op[0], op[1]);
+ break;
+ case ir_binop_max:
+ this->result = this->create_tree(MB_TERM_max_vec4_vec4, ir, op[0], op[1]);
+ break;
default:
break;
}
%term sqrt_vec4
%term rsq_vec4
%term swizzle_vec4
+%term min_vec4_vec4
+%term max_vec4_vec4
# Each tree will produce stmt. Currently, the only production for
# stmt is from an assign rule -- every statement tree from
tree->left->src_reg);
}
+vec4: min_vec4_vec4(vec4, vec4) 1 { ir_to_mesa_emit_op2(tree, OPCODE_MIN); }
+vec4: max_vec4_vec4(vec4, vec4) 1 { ir_to_mesa_emit_op2(tree, OPCODE_MAX); }
+
%%