spirv: Handle all OpenCL conversion ops with full rounding
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 30 Sep 2020 21:43:31 +0000 (16:43 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 1 Oct 2020 18:36:53 +0000 (18:36 +0000)
commit8610af12b6a64011df905b9b0ab2d773dfaae139
treed52ab46375ef3ee9bba17be70355f11f0991bc02
parent8e8458218c6e6668fc33fd99d44276ffc7d0d921
spirv: Handle all OpenCL conversion ops with full rounding

This is done for kernels via the new convert_alu_types intrinsic.  For
Vulkan and OpenGL, we maintain the old path so that drivers don't have
to add that lowering pass.

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>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_alu.c