ac/radv: move lower_indirect_derefs() to ac_nir_to_llvm.c
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 5 Mar 2018 00:13:11 +0000 (11:13 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 5 Mar 2018 03:09:23 +0000 (14:09 +1100)
commit0f2c7341e8fc0ea5bb219a24a7120bd4c79bd3d6
treef953030a7ddf208325494ee2fbe6054cef478ff6
parenteea20d59abd304953c8c1591612d45d3d94eb785
ac/radv: move lower_indirect_derefs() to ac_nir_to_llvm.c

Until llvm handles indirects better we will need to use these
workarounds in the radeonsi backend also.

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