amd/common: handle nir_deref_cast for shared memory from integers.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 24 Jan 2019 00:25:50 +0000 (01:25 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 6 Feb 2019 21:36:02 +0000 (22:36 +0100)
commit8d1718590b643aea744748ae4eeb83e0c82aab0c
tree7909bf2e8cd445cb5ba89e1417d1e1c1040cdf75
parent830fd0efc1ae58d722d8efa4b95f708cf70b23ca
amd/common: handle nir_deref_cast for shared memory from integers.

Can happen e.g. after a phi.

Fixes: a2b5cc3c399 "radv: enable variable pointers"
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_nir_to_llvm.c