llvmpipe: align scratch size to 64-bit size.
authorDave Airlie <airlied@redhat.com>
Tue, 3 May 2022 00:33:02 +0000 (10:33 +1000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 May 2022 11:00:03 +0000 (11:00 +0000)
commit0a056f84ed47736570bf1cc432e7df756b057011
tree1c34fba5615c24f44e70992383c976474fdf777c
parent394e42427fb361ff4a41e70f4dc8818519ba7b28
llvmpipe: align scratch size to 64-bit size.

This fixes a crash with luxmark where it uses a 12-byte scratch space,
but when llvmpipe allocates it for 8 lanes, it isn't properly aligned
for 64-bit.

Karol found this debugging rusticl.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16288>
src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c