From: Ian Romanick Date: Wed, 12 Oct 2022 21:51:22 +0000 (-0700) Subject: nir: ifind_msb_rev can only have int32 sources X-Git-Tag: upstream/23.3.3~11846 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66840b98e41b034c8ce867cfbd58c242bae08f9f;p=platform%2Fupstream%2Fmesa.git nir: ifind_msb_rev can only have int32 sources Just like ifind_msb. Reviewed-by: Kenneth Graunke Part-of: --- diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 06d6a2d..0b2c8c4 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -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;