radv: add the vertex buffers BO to the list at bind time
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 14 Nov 2017 16:27:29 +0000 (17:27 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Nov 2017 08:01:07 +0000 (09:01 +0100)
commit059d25a06de2bd396bd8d6d2dc1580361d3db915
tree2fbc9ae49d00ef9b8073b23164d8d90891812ea2
parentc665879455f04af3cf1830ed4a4494adfef9b381
radv: add the vertex buffers BO to the list at bind time

This should reduce the overhead of adding a BO to the current
list, especially when the list is huge. Also, when a new pipeline
is bound, we only need to update the descriptor, the buffer objects
should already be in the list.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c