From 1b8edffaa5816449436fac981fd27005fcede8c9 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 9 Oct 2019 13:07:40 +0200 Subject: glsl: Add ir_unop_f2fmp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the same as ir_unop_f2f16 except that it comes with a promise that it is safe to optimise it out if the result is immediately converted back to float32 again. Normally this would be a lossy operation but it is safe to do if the conversion was generated as part of the precision lowering pass. Reviewed-by: Marek Olšák Reviewed-by: Ian Romanick Part-of: --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index e53bed93f6b..31ffa24958c 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -2397,6 +2397,7 @@ glsl_to_tgsi_visitor::visit_expression(ir_expression* ir, st_src_reg *op) case ir_binop_mul_32x16: case ir_unop_f162f: case ir_unop_f2f16: + case ir_unop_f2fmp: case ir_unop_f162b: case ir_unop_b2f16: /* This operation is not supported, or should have already been handled. -- cgit v1.2.3