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 <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
Ian Romanick
2015-05-06 17:01:37 -07:00
parent e0a17f6e31
commit ad51f9b421
+1 -1
View File
@@ -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: