aboutsummaryrefslogtreecommitdiffstats
path: root/ir_print_visitor.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-03-27 13:01:51 -0700
committerIan Romanick <[email protected]>2010-03-29 12:48:45 -0700
commit44d68fd06ff8b53fc70a9a07c897dda9b3457ef8 (patch)
treeb01b0d1c2c631a3539509e117569d1d9f9f57171 /ir_print_visitor.cpp
parentddd2e83db2b6baa062f76f22bb980030144dbcad (diff)
Add sqrt() builtin as an IR operation.
Following a discussion in #dri-devel, I think this makes more sense than implementing it as RSQ RCP CMP as Mesa did. The i965 has a hardware sqrt that should work, and AMD is suppposed to be able to implement it as RSQ RCP with an alternate floating point mode so that the 0.0 case is handled like we want.
Diffstat (limited to 'ir_print_visitor.cpp')
-rw-r--r--ir_print_visitor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp
index ecfdb49c480..8b2080f7ec5 100644
--- a/ir_print_visitor.cpp
+++ b/ir_print_visitor.cpp
@@ -93,6 +93,7 @@ void ir_print_visitor::visit(ir_expression *ir)
"abs",
"rcp",
"rsq",
+ "sqrt",
"exp",
"log",
"f2i",