summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir_builder.cpp
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-06-09 10:01:40 +1000
committerIan Romanick <[email protected]>2017-01-20 15:41:23 -0800
commit25c7a61b28d50a001ed77ca6aafd53220d679fe2 (patch)
treef28864c0c3c38636efa7ba1ab7a6cf88a0ff6216 /src/compiler/glsl/ir_builder.cpp
parent78cc44280e3faeded8eea7face614e13d28481f0 (diff)
glsl/ir_builder: Add support for some 64-bit bitcasts.
We need builder support to implement some of the builtins. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_builder.cpp')
-rw-r--r--src/compiler/glsl/ir_builder.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir_builder.cpp b/src/compiler/glsl/ir_builder.cpp
index f430100a085..0cee8565e4e 100644
--- a/src/compiler/glsl/ir_builder.cpp
+++ b/src/compiler/glsl/ir_builder.cpp
@@ -518,6 +518,30 @@ b2f(operand a)
return expr(ir_unop_b2f, a);
}
+ir_expression*
+bitcast_d2i64(operand a)
+{
+ return expr(ir_unop_bitcast_d2i64, a);
+}
+
+ir_expression*
+bitcast_d2u64(operand a)
+{
+ return expr(ir_unop_bitcast_d2u64, a);
+}
+
+ir_expression*
+bitcast_i642d(operand a)
+{
+ return expr(ir_unop_bitcast_i642d, a);
+}
+
+ir_expression*
+bitcast_u642d(operand a)
+{
+ return expr(ir_unop_bitcast_u642d, a);
+}
+
ir_expression *
interpolate_at_centroid(operand a)
{