anv: Fix descriptor set clean-up on BO allocation failure
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 14 May 2020 03:57:46 +0000 (22:57 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 16:14:34 +0000 (16:14 +0000)
commit4151bddab5d3dc082ac689e4d3a96f42fa4718ec
treef0a0b45fb82f976acc3958a29d403d3c2506fefe
parent3f74c6a8815dcc5ff7f56993cc88f9e21aa81d14
anv: Fix descriptor set clean-up on BO allocation failure

This was a bit of rebase fail when writing 682c81bdfb.  We stopped
freeing descriptor sets back to the pool and started calling
vk_object_base_finish.  This commit reverts a that hunk should have
never made its way into the final patch.

Fixes: 682c81bdfb "vulkan,anv: Add a base object struct type"
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Mark Janes <mark.a.janes@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5032>
src/intel/vulkan/anv_descriptor_set.c