nir/lower_goto_ifs: Use rzalloc
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 24 Sep 2020 02:54:05 +0000 (21:54 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 30 Sep 2020 16:46:11 +0000 (16:46 +0000)
commitdc010cb74e1a60645cfd088f51c88a13cf5687ba
tree5de0de32f5f6c7a2219c5a4f81d3b4bfdd81ace1
parentfa3c38ceb36eaa681f2ab0be7b07aefbeefc617d
nir/lower_goto_ifs: Use rzalloc

In particular, SSA forks weren't always getting properly initialized
which was causing asserts to fail.

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