case ir_unop_sqrt:
this->result = this->create_tree(MB_TERM_sqrt_vec4, ir, op[0], op[1]);
break;
+ case ir_unop_rsq:
+ this->result = this->create_tree(MB_TERM_rsq_vec4, ir, op[0], op[1]);
+ break;
case ir_unop_i2f:
/* Mesa IR lacks types, ints are stored as floats. */
this->result = op[0];
%term dp3_vec4_vec4
%term dp2_vec4_vec4
%term sqrt_vec4
+%term rsq_vec4
%term swizzle_vec4
# Each tree will produce stmt. Currently, the only production for
tree->src_reg);
}
+vec4: rsq_vec4(vec4) 1
+{
+ ir_to_mesa_emit_scalar_op1(tree, OPCODE_RSQ,
+ tree->dst_reg,
+ tree->left->src_reg);
+}
+
vec4: exp_vec4(vec4) 1
{
ir_to_mesa_emit_scalar_op1(tree, OPCODE_EXP,