radv: handle loading from shared pointers
authorDave Airlie <airlied@redhat.com>
Mon, 19 Nov 2018 03:48:37 +0000 (13:48 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Nov 2018 22:54:42 +0000 (08:54 +1000)
commitbaa4bdd3a6a7496f38c7b79235fe8ea24718729e
treeda55090d05ec077104240614ba35540b8b0a12e3
parentec9fe8abc730c890a76ffb6d01a3ec1099ddf264
radv: handle loading from shared pointers

We won't have a var to load from, so don't try to the processing
required if we don't need it.

This avoids crashes in:
dEQP-VK.spirv_assembly.instruction.compute.variable_pointers.compute.workgroup_two_buffers

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c