diff options
author | Neil Roberts <[email protected]> | 2019-10-09 13:07:40 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-09 16:31:08 +0000 |
commit | 1b8edffaa5816449436fac981fd27005fcede8c9 (patch) | |
tree | cdbd0165cc9c8f38dfbaed7f31ed2f65d72c5906 /src/mesa/program | |
parent | 5d6b007da8a36254e03e2ae9e83bd3330f528dc8 (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/program')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index ee7741b8755..adb8720c622 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -1349,6 +1349,7 @@ ir_to_mesa_visitor::visit(ir_expression *ir) case ir_unop_clz: case ir_unop_f162f: case ir_unop_f2f16: + case ir_unop_f2fmp: case ir_unop_f162b: case ir_unop_b2f16: assert(!"not supported"); |