radv: refactor radv_UpdateDescriptorSets
authorFredrik Höglund <fredrik@kde.org>
Wed, 29 Mar 2017 16:08:06 +0000 (18:08 +0200)
committerFredrik Höglund <fredrik@kde.org>
Thu, 6 Apr 2017 22:54:46 +0000 (00:54 +0200)
commita6e94a87cb0d0fd61f70a0eb5e33b3520a50d3c1
treea4038c0be317d35b4035786220e0ded187609f74
parentbedd89429ffda9d4a87da6f7e7ea2aa93b8420c4
radv: refactor radv_UpdateDescriptorSets

Move the implementation into a separate function that takes a
cmd_buffer and a dstSetOverride parameter.

When cmd_buffer is not NULL, radv_update_descriptor_sets calls
cs_add_buffer directly instead of updating the buffer list.

This will be used to implement VK_KHR_push_descriptor.

Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_private.h