turnip: fix leak of tu_shader object during compute pipeline creation
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Tue, 2 Mar 2021 10:00:58 +0000 (12:00 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Mar 2021 10:41:29 +0000 (10:41 +0000)
commit4600dbc6cc81f9ac6590da8d24fafccc69ab514d
tree1f21df61c97255bae7d5c3b6311ebea070c86d98
parentb33792b794f62724ea664e2add412ebb1292c683
turnip: fix leak of tu_shader object during compute pipeline creation

tu_shader should be freed after pipeline is successfully created.

Fixes tests:
 dEQP-VK.api.object_management.alloc_callback_fail.compute_pipeline
 dEQP-VK.api.object_management.alloc_callback_fail_multiple.compute_pipeline

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