summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2019-10-09 13:07:40 +0200
committerMarge Bot <[email protected]>2020-03-09 16:31:08 +0000
commit1b8edffaa5816449436fac981fd27005fcede8c9 (patch)
treecdbd0165cc9c8f38dfbaed7f31ed2f65d72c5906 /src/mesa/state_tracker
parent5d6b007da8a36254e03e2ae9e83bd3330f528dc8 (diff)
glsl: Add ir_unop_f2fmp
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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3929>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp1
1 files changed, 1 insertions, 0 deletions
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.