summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_builder.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2013-08-03 11:33:49 -0700
committerMatt Turner <mattst88@gmail.com>2013-08-14 17:15:06 -0700
commit6bfb1a8344d58aa47a28cff87f508088233e70f6 (patch)
tree035c8842c456d18b3139e2c757aeed5996946410 /src/glsl/ir_builder.cpp
parent3d1b01662bd72b33923a60abad98eb9623406cbc (diff)
downloadexternal_mesa3d-6bfb1a8344d58aa47a28cff87f508088233e70f6.zip
external_mesa3d-6bfb1a8344d58aa47a28cff87f508088233e70f6.tar.gz
external_mesa3d-6bfb1a8344d58aa47a28cff87f508088233e70f6.tar.bz2
glsl: Add bitcast_i2f() to ir_builder.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/glsl/ir_builder.cpp')
-rw-r--r--src/glsl/ir_builder.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.cpp b/src/glsl/ir_builder.cpp
index 8fb30a0..5e1da17 100644
--- a/src/glsl/ir_builder.cpp
+++ b/src/glsl/ir_builder.cpp
@@ -304,12 +304,24 @@ f2i(operand a)
}
ir_expression*
+bitcast_f2i(operand a)
+{
+ return expr(ir_unop_bitcast_f2i, a);
+}
+
+ir_expression*
i2f(operand a)
{
return expr(ir_unop_i2f, a);
}
ir_expression*
+bitcast_i2f(operand a)
+{
+ return expr(ir_unop_bitcast_i2f, a);
+}
+
+ir_expression*
i2u(operand a)
{
return expr(ir_unop_i2u, a);
@@ -328,11 +340,23 @@ f2u(operand a)
}
ir_expression*
+bitcast_f2u(operand a)
+{
+ return expr(ir_unop_bitcast_f2u, a);
+}
+
+ir_expression*
u2f(operand a)
{
return expr(ir_unop_u2f, a);
}
+ir_expression*
+bitcast_u2f(operand a)
+{
+ return expr(ir_unop_bitcast_u2f, a);
+}
+
ir_if*
if_tree(operand condition,
ir_instruction *then_branch)