Revert "radv: Don't store buffer references in the descriptor set."
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 19 Apr 2018 11:39:17 +0000 (13:39 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Apr 2018 14:18:13 +0000 (16:18 +0200)
commit7bd5367546971f65c8210c0b44b8f21c0b8811c4
tree42d16181e622c61597d336689b8389c3db19a950
parenteb96bd57c71dba81e81c61f30ff8f4c5be17440f
Revert "radv: Don't store buffer references in the descriptor set."

In order to reduce a performance regression introduced by
4b13fe55a4 ("radv: Keep a global BO list for VkMemory."),
we are going to maintain two different paths.

One when VK_EXT_descriptor_indexing is enabled by the
application because we need to have a global BO list, and
one (the old one) when it's not enabled.

With Talos on Polaris, the global BO list reduces performance
by 10% which is too much for me.

This reverts commit ab6cadd3ecc7fbdd9079808b407674e0b19c52f0.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_debug.c
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_descriptor_set.h
src/amd/vulkan/radv_private.h