gallivm/nir: make sure to mask global reads.
authorDave Airlie <airlied@redhat.com>
Thu, 1 Oct 2020 01:05:11 +0000 (11:05 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Oct 2020 18:17:41 +0000 (04:17 +1000)
commit35b162eb2c0b8d8b3d41e276e9193bd9b0edd464
tree93cd20b94ac0a3d370c30d12e6af56b2c4601528
parent545d852a7a7bc8a509d22096bdb7fb578d4bab65
gallivm/nir: make sure to mask global reads.

Make the driver only read values for the active lanes,
otherwise it can cause unwanted oob accesses that aren't
the apps fault.

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