anv/descriptor_set: Unlink sets from the pool in set_destroy
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 24 Apr 2019 03:13:55 +0000 (22:13 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 24 Apr 2019 05:40:27 +0000 (05:40 +0000)
commit6be603edf7e2bd6ac7bc7a4e15152b8f0d0ee729
treede1338d2fa5d6ddd520408ec1f777d75334037fe
parent4add3c6880446725b02467980518cc59491af109
anv/descriptor_set: Unlink sets from the pool in set_destroy

anv_descriptor_pool_free_set is called on the clean-up path of
anv_descriptor_set_create and the set may not have been added to the
pool's list of sets yet.  While we're here, we move adding it to that
list into set_create for symmetry.

Fixes: 105002bd2d "anv: destroy descriptor sets when pool gets..."
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_descriptor_set.c