nir/lower_int64: Enable lowering of 64-bit float to 64-bit integer conversions.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 17 Oct 2022 21:00:59 +0000 (14:00 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 29 Oct 2022 19:45:44 +0000 (19:45 +0000)
commit29da9856826fa6a4b5117c43c78b4301a49bc6dd
tree2b7157a9211464afc3930ee9df63e8a11384982b
parenteac8cbb049199503da4a6152c02e8ae99d7017e0
nir/lower_int64: Enable lowering of 64-bit float to 64-bit integer conversions.

The existing code for this appears to work okay for conversions
involving 64-bit floats, relax the assert and enable the lowering
path.  This fixes 64-bit float to 64-bit integer integer conversions
on devices that have native support for 64-bit floats but lack 64-bit
integer support, like Intel MTL hardware.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19128>
src/compiler/nir/nir_lower_int64.c