ac/nir: Don't load the descriptor in vulkan_resource_index.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 10 Dec 2017 22:18:32 +0000 (23:18 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 11 Dec 2017 23:16:18 +0000 (00:16 +0100)
commit368f49b284d6ad4567d0baf718de499ce8decf00
treef2322cd9dee28184cb7f124a885e9fa0ca9b4864
parentbf0904e31fb7d9cd8932d582076c8d7beb02ba89
ac/nir: Don't load the descriptor in vulkan_resource_index.

To support the reindex intrinsic, we need the result to be
something on which we can adjust the index/address.

Since it is all within a basic block, the compiler should be
able to merge any extra loads.

v2: Change visit_get_buffer_size too.
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c