pan/bi: Use nir_undef_to_zero
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 15 Oct 2020 12:47:40 +0000 (08:47 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 23 Oct 2020 14:48:23 +0000 (14:48 +0000)
commit81b28ebcb5a3801216e752cfda2e600bbc7bcb10
tree157740a77092f4d7533b6d7236d67ba3a8a25eda
parent86b2b4eb768bcee6664790a66fc5508002e34424
pan/bi: Use nir_undef_to_zero

We don't handle undefs explicitly in NIR->BIR which means if they aren't
optimized out they won't be RA'd to anything and then backend RA will
crash (as occurs in a glamor shader seen in MATE).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
src/panfrost/bifrost/bifrost_compile.c