summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2015-05-06 17:01:37 -0700
committerIan Romanick <[email protected]>2015-05-08 12:12:54 -0700
commitad51f9b4213d90489362d98f5aa2bf1956ef6f53 (patch)
tree41c23dc96dd9f17c0bfd0461e00d05ec1a718639 /src/glsl/nir
parente0a17f6e31a8cefc173ced5f53cb2d28a842fbb6 (diff)
nir: Don't produce nir_op_flog from GLSL IR
All paths that produce GLSL IR for NIR lower ir_unop_log. All paths that consume NIR will explode if they geta nir_op_flog. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]> Acked-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r--src/glsl/nir/glsl_to_nir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp
index 3025d6b3805..74cfb55394c 100644
--- a/src/glsl/nir/glsl_to_nir.cpp
+++ b/src/glsl/nir/glsl_to_nir.cpp
@@ -1039,7 +1039,7 @@ nir_visitor::visit(ir_expression *ir)
case ir_unop_rsq: emit(nir_op_frsq, dest_size, srcs); break;
case ir_unop_sqrt: emit(nir_op_fsqrt, dest_size, srcs); break;
case ir_unop_exp: unreachable("ir_unop_exp should have been lowered");
- case ir_unop_log: emit(nir_op_flog, dest_size, srcs); break;
+ case ir_unop_log: unreachable("ir_unop_log should have been lowered");
case ir_unop_exp2: emit(nir_op_fexp2, dest_size, srcs); break;
case ir_unop_log2: emit(nir_op_flog2, dest_size, srcs); break;
case ir_unop_i2f: