turnip: Drop references to layout of all sets on pool reset/destruction
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Thu, 27 Jan 2022 14:04:06 +0000 (16:04 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 27 Jan 2022 23:47:46 +0000 (23:47 +0000)
commitda7a475138d6b5cab15e26be3343abf36ab74727
treee8d8feee3a32242a0324168a88e69764c4e6872f
parentbdb8e615d1a1ff6cce935ee5544748d61db1bb5c
turnip: Drop references to layout of all sets on pool reset/destruction

We dropped the references only for non-host_memory_base pools.
Create a list of alive descriptor to account for all of them.

Fixes: 1b513f49 ("tu: add reference counting for descriptor set layouts")

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14235>
src/freedreno/vulkan/tu_descriptor_set.c
src/freedreno/vulkan/tu_private.h