Skip to content

nir: Fix ifind_msb_rev

小田喜陽彦 requested to merge akihiko.odaki/mesa:nir into main

nir: Fix ifind_msb_rev

The implementation expects the source is 32-bit and the only user of the operator is the expansion of ifind_msb which also has the same expectation. However, the signature said it accepts the source with a variable bit length. Just use unop to claim the type of the source is the same with the type of the destination.

@phomes maybe you are interested with this one as you are addressing warnings emitted by clang.

Signed-off-by: Akihiko Odaki akihiko.odaki@gmail.com

Edited by 小田喜陽彦

Merge request reports