From 3c5979565facebc82000a611b991d2977b8e9bbf Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 19 May 2010 15:50:02 -0700 Subject: ir_to_mesa: Add sin/cos. --- ir_to_mesa.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ir_to_mesa.cpp') diff --git a/ir_to_mesa.cpp b/ir_to_mesa.cpp index 67c79b66ee..205e2fc8c9 100644 --- a/ir_to_mesa.cpp +++ b/ir_to_mesa.cpp @@ -430,6 +430,12 @@ ir_to_mesa_visitor::visit(ir_expression *ir) case ir_unop_log2: this->result = this->create_tree(MB_TERM_log2_vec4, ir, op[0], NULL); break; + case ir_unop_sin: + this->result = this->create_tree(MB_TERM_sin_vec4, ir, op[0], NULL); + break; + case ir_unop_cos: + this->result = this->create_tree(MB_TERM_cos_vec4, ir, op[0], NULL); + break; case ir_binop_add: this->result = this->create_tree(MB_TERM_add_vec4_vec4, ir, op[0], op[1]); break; -- cgit v1.2.3