There are sadly no SPIRV variants for hadd or iadd_sat we can use, so
lower those.
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24839>
UNOP(nir_op_f2f64, SpvOpFConvert)
UNOP(nir_op_bitfield_reverse, SpvOpBitReverse)
UNOP(nir_op_bit_count, SpvOpBitCount)
+ UNOP(nir_op_fisnormal, SpvOpIsNormal)
#undef UNOP
case nir_op_f2f16_rtz:
.lower_flrp32 = true,
.lower_fpow = true,
.lower_fsat = true,
+ .lower_hadd = true,
+ .lower_iadd_sat = true,
.lower_extract_byte = true,
.lower_extract_word = true,
.lower_insert_byte = true,