radv: Fix descriptor set allocation failure.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 30 Jul 2019 20:23:02 +0000 (22:23 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 30 Jul 2019 20:33:24 +0000 (22:33 +0200)
commit2b53c49d2f7e54c4b3693abb0f13adf27d179ea8
tree949fcdfb7d01d1cda81c01c23b529a20d8e300c0
parent2b71b4e79374ee0243de2d83409adab05ee71c69
radv: Fix descriptor set allocation failure.

Set all the handles to VK_NULL_HANDLE:

"If the creation of any of those descriptor sets fails, then the implementation
must destroy all successfully created descriptor set objects from this command,
set all entries of the pDescriptorSets array to VK_NULL_HANDLE and return the
error."

(Vulkan 1.1.117 Spec, section 13.2)

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_descriptor_set.c