vulkan: Properly free guest-side handles for descriptor sets (host)

bug: 145153816

We need to free the guest-side handle of VkDescriptorSet in case of
vkResetDescriptorPool and vkDestroyDescriptorPool, or it's a potential
memory leak.

Also, pass vkFreeDescriptorSet to the host only if it makes sense.

Test: host-side unit test (vulkanhal_unittests)
dEQP-VK.binding_model*

Change-Id: Ic5cfd4a5529285a3744bcd65dbba7e99b422f5df
1 file changed
tree: 94e5229f2d120c698d792ba326105715ef817a61
  1. registry/