anv: Refactor anv_queue_finish()
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 25 Jan 2021 22:36:01 +0000 (16:36 -0600)
committerMarge Bot <eric+marge@anholt.net>
Thu, 28 Jan 2021 18:26:32 +0000 (18:26 +0000)
commite18d045b693dfbca1dd40c920d9e4cc3f965b56c
tree18081d614c898b0746cbfeef1096ef58c8b530d0
parent34721e2af488eb68ef65c6e2465aa8c0bcd79dee
anv: Refactor anv_queue_finish()

By moving vk_object_base_finish() to the end and putting the thread
clean-up in an if block we both better mimic anv_queue_init() and have a
more correct object destruction order.  It comes at the cost of a level
of indentation but that seems to actually make the function more clear.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8667>
src/intel/vulkan/anv_queue.c