nir: ifind_msb_rev can only have int32 sources
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 12 Oct 2022 21:51:22 +0000 (14:51 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Mar 2023 15:27:17 +0000 (15:27 +0000)
Just like ifind_msb.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19042>

src/compiler/nir/nir_opcodes.py

index 06d6a2d..0b2c8c4 100644 (file)
@@ -498,7 +498,7 @@ for (int bit = bit_size - 1; bit >= 0; bit--) {
 }
 """)
 
-unop_convert("ifind_msb_rev", tint32, tint, """
+unop("ifind_msb_rev", tint32, """
 dst = -1;
 /* We are looking for the highest bit that's not the same as the sign bit. */
 uint32_t sign = src0 & 0x80000000u;