summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/glsl_to_nir.cpp
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2016-01-12 12:39:58 +0100
committerSamuel Iglesias Gonsálvez <[email protected]>2016-04-11 08:29:27 +0200
commitb16d06252e9179f5c279da69ee194cc0400ae403 (patch)
tree490ea2727a9ef0699f51f375f2f5f8efa494ffd8 /src/compiler/nir/glsl_to_nir.cpp
parenta4bce07dc6ebbd74dfb47394962d573ed01ee482 (diff)
nir: add d2i, d2u, d2b opcodes
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/glsl_to_nir.cpp')
-rw-r--r--src/compiler/nir/glsl_to_nir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/glsl_to_nir.cpp b/src/compiler/nir/glsl_to_nir.cpp
index 6a70c4d1758..6428b95965f 100644
--- a/src/compiler/nir/glsl_to_nir.cpp
+++ b/src/compiler/nir/glsl_to_nir.cpp
@@ -1358,6 +1358,9 @@ nir_visitor::visit(ir_expression *ir)
case ir_unop_b2i: result = nir_b2i(&b, srcs[0]); break;
case ir_unop_d2f: result = nir_d2f(&b, srcs[0]); break;
case ir_unop_f2d: result = nir_f2d(&b, srcs[0]); break;
+ case ir_unop_d2i: result = nir_d2i(&b, srcs[0]); break;
+ case ir_unop_d2u: result = nir_d2u(&b, srcs[0]); break;
+ case ir_unop_d2b: result = nir_d2b(&b, srcs[0]); break;
case ir_unop_i2u:
case ir_unop_u2i:
case ir_unop_bitcast_i2f: