zink: Add mapping for nir_op_ldexp, but disable it for 64-bit's sake.
authorEmma Anholt <emma@anholt.net>
Wed, 22 Mar 2023 20:11:16 +0000 (13:11 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 02:32:00 +0000 (02:32 +0000)
commit675f4ff596f358bf19f499a6ab06ae035e3eb9c8
tree994b9f175d990d88654d276a458e6ba8ac29f690
parent46bf687882ab25042b4e15edc331eb8fe32d3a21
zink: Add mapping for nir_op_ldexp, but disable it for 64-bit's sake.

We previously had GLSL do ldexp lowering to bitops, but NIR can do it
instead.  It's tempting to just pass the NIR op through to the host Vulkan
driver, but to do that we'd need to split up NIR's flag between 32 and
64-bit support, and that's not worth anyone's time for an op we've never
seen used.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22083>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_screen.c