intel/compiler: move nir_lower_bool_to_int32 before nir_lower_locals_to_regs
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 19 Dec 2018 07:05:19 +0000 (08:05 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 20 Dec 2018 07:02:44 +0000 (08:02 +0100)
commitd6110d4d547ad98dce7a89d0e020ab5be5aaaad6
treee632adae1c56e2d2818ecf555d4b15d2055bf68c
parent1250383e367fef6fdb954d69a7444634c6788f5d
intel/compiler: move nir_lower_bool_to_int32 before nir_lower_locals_to_regs

The former expects to see SSA-only things, but the latter injects registers.

The assertions in the lowering where not seeing this because they asserted
on the bit_size values only, not on the is_ssa field, so add that assertion
too.

Fixes: 11dc1307794e "nir: Add a bool to int32 lowering pass"
CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_bool_to_int32.c
src/intel/compiler/brw_nir.c