summaryrefslogtreecommitdiff
path: root/ir_to_mesa.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-05-06 14:52:16 -0700
committerEric Anholt <eric@anholt.net>2010-06-24 15:05:20 -0700
commit878740bedf418e5bf42ed6d350c938d29abaaf25 (patch)
tree954dc79874a8f30b30e933fb50396304a6b575fa /ir_to_mesa.cpp
parent8c29a1d84d738cfddf16d5f013876ee2cca96a81 (diff)
ir_to_mesa: Add codegen for rsq expression operation.
Diffstat (limited to 'ir_to_mesa.cpp')
-rw-r--r--ir_to_mesa.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ir_to_mesa.cpp b/ir_to_mesa.cpp
index 3fed157779..b28747e6a2 100644
--- a/ir_to_mesa.cpp
+++ b/ir_to_mesa.cpp
@@ -361,6 +361,9 @@ ir_to_mesa_visitor::visit(ir_expression *ir)
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];