gallivm/nir: fix const compact
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 07:11:12 +0000 (17:11 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 31 Aug 2020 03:20:11 +0000 (13:20 +1000)
commitd7aed02bccae41c68c06002bab42c9efe166e68e
tree2d6cbdde630ff9ac7888292cd32d33f0de2cd0fe
parent96a5ced65f6cfb666d040f3d75f40c6c5878946b
gallivm/nir: fix const compact

Since adding support for compacts this crashes with indirects
don't get the const address unless it's a const.

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