nir: Report progress properly in nir_lower_bool_to_*
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 22 Aug 2020 00:02:02 +0000 (19:02 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Aug 2020 22:39:08 +0000 (22:39 +0000)
commit27e6117ee9f77ef40721f7757e181ddf93fc60dd
treecc7821cb6ceb5df032273d0f5106f9d8660841db
parent39d00722b22a0059bbc58f0158a22f384519cd39
nir: Report progress properly in nir_lower_bool_to_*

All three passes have the same bug where, in the mov/vec case they
unconditionally return true even if they don't change anything.  Throw
in a bit size check so they return false properly.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6435>
src/compiler/nir/nir_lower_bool_to_bitsize.c
src/compiler/nir/nir_lower_bool_to_float.c
src/compiler/nir/nir_lower_bool_to_int32.c