summaryrefslogtreecommitdiff
path: root/ir_to_mesa.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-05-19 15:50:02 -0700
committerEric Anholt <eric@anholt.net>2010-06-24 15:05:20 -0700
commit3c5979565facebc82000a611b991d2977b8e9bbf (patch)
tree8d2a2430b91d366482a4d3ae0be3a0abe4ed1610 /ir_to_mesa.cpp
parent2c432637d0960aa522ccd09416ba1d8a65c6988b (diff)
ir_to_mesa: Add sin/cos.
Diffstat (limited to 'ir_to_mesa.cpp')
-rw-r--r--ir_to_mesa.cpp6
1 files changed, 6 insertions, 0 deletions
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;