gallivm: fix non-32bit ubo loads
authorDave Airlie <airlied@redhat.com>
Fri, 18 Dec 2020 06:43:56 +0000 (16:43 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 22 Mar 2021 02:16:14 +0000 (12:16 +1000)
commit2a9e98130b0354f391ef9e530eacafadb52b0633
treec7c17a59f406a6cdb751768b38dd542cf2f40bcd
parent07080fd4c9fa8e813f73550c440e5f393de2aa17
gallivm: fix non-32bit ubo loads

8/16-bit storage requires ubo loads for the smaller types,
fix the ubo loading and bounds checking.

Acked-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9643>
src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c