nir/lower_int64: Lower 8 and 16-bit downcasts with nir_lower_mov64
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 28 Mar 2020 16:22:43 +0000 (11:22 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 31 Mar 2020 00:18:05 +0000 (00:18 +0000)
commit14a49f31d3977c2b072b9ef2fdeebebca69fe1d7
tree48ec496277b5430b78c210983173a0ffeb27804d
parent1b3aefad46bda59ff02c0d81c53fd3fbf249d8f4
nir/lower_int64: Lower 8 and 16-bit downcasts with nir_lower_mov64

We have the code to do the lowering, we were just missing the
boilerplate bits to make should_lower_int64_alu_instr return true.

Fixes: 62d55f12818e "nir: Wire up int64 lowering functions"
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>
src/compiler/nir/nir_lower_int64.c