gallivm/nir: don't access stream var outside bounds
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 06:18:22 +0000 (16:18 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Jul 2020 20:06:05 +0000 (06:06 +1000)
commit690238ff564ecb4f9dcfdfd61a9c36a8447cc863
tree5c38a7468a8261e82e110d598f733178118562de
parent21b903dd7d9df64d175ef216e580b419d74cee1e
gallivm/nir: don't access stream var outside bounds

Since we allocate only enough for streams we see, don't access
out of bounds when streams are given

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