nir/ lower_int_to_float: Handle umax and umin
authorAndreas Baierl <ichgeh@imkreisrum.de>
Thu, 23 Jul 2020 05:43:09 +0000 (07:43 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jul 2020 14:45:32 +0000 (14:45 +0000)
commitce4064fe2fecd919c4adbe32320f85c2381d82e8
tree25d04cb97743eca63b5d1ed248c4562c70a2e2ca
parent589d8665f012805f589e2e0ab6e9e04f7a8da96f
nir/ lower_int_to_float: Handle umax and umin

8e1b75b3 introduced umax/umin in order to lower iand/ior for (n)eq zero.
That breaks the lower_int_to_float pass, because umax and umin weren't
handled there.

Tested with lima. The other users of nir_lower_int_to_float
(etnaviv, freedreno) should also have that issue.

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6043>
src/compiler/nir/nir_lower_int_to_float.c