anv: Fix destroying descriptor sets when pool gets reset
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Tue, 12 Mar 2019 15:13:47 +0000 (17:13 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 12 Mar 2019 17:09:37 +0000 (17:09 +0000)
commit9c80be956fff4d4786a9b77c6b9d3fec67ff2377
tree86e1322b676cd4455f6a3f37c697c3023f53ac23
parentccce9409470c1053c40c822d759b9bd417062bc0
anv: Fix destroying descriptor sets when pool gets reset

pool->next and pool->free_list were reset before their usage in
anv_descriptor_pool_free_set

Fixes: 775aabdd "anv: destroy descriptor sets when pool gets reset"
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_descriptor_set.c