projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29be4e9
)
nir: ifind_msb_rev can only have int32 sources
author
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 12 Oct 2022 21:51:22 +0000
(14:51 -0700)
committer
Marge 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
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_opcodes.py
b/src/compiler/nir/nir_opcodes.py
index
06d6a2d
..
0b2c8c4
100644
(file)
--- 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;