gallivm: zero init the temporary register storage.
authorDave Airlie <airlied@redhat.com>
Thu, 29 Oct 2020 03:06:43 +0000 (13:06 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 29 Oct 2020 19:30:35 +0000 (05:30 +1000)
commitf7d1460418f11c0209d099ddc552d126a68ba6e4
tree61131e573ef99753b43533aeaf7194e810866e06
parent176137948150d153c7756505fc78dcfb13511f83
gallivm: zero init the temporary register storage.

Due to flow control we can end up with random values in here having
side effects.

This fixes a crash in gtk4-demo.

Fixes: 44a6b0107b37 ("gallivm: add nir->llvm translation (v2)")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7327>
src/gallium/auxiliary/gallivm/lp_bld_nir.c