commit | 588bb6686b38ecb6316269fe20792dea5aab819d | [log] [tgz] |
---|---|---|
author | Jason Ekstrand <jason@jlekstrand.net> | Wed Sep 30 15:19:45 2020 -0500 |
committer | Marge Bot <eric+marge@anholt.net> | Thu Oct 01 18:36:53 2020 +0000 |
tree | f2fe6135fd721b696c87ecf9decbd39616462f20 | |
parent | 0aa08ae2f673a36709c5485679d4c89a747ec0e9 [diff] |
nir: Add a conversion and rounding intrinsic This new intrinsic is capable of handling the full range of conversions from OpenCL including rounding modes and possible saturation. The intention is that we'll emit this intrinsic directly from spirv_to_nir and then lower it to ALU ops later. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6945>