radv/rt: properly destroy radv_ray_tracing_lib_pipeline on error
authorDaniel Schürmann <daniel@schuermann.dev>
Tue, 25 Apr 2023 14:12:19 +0000 (16:12 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Apr 2023 23:52:49 +0000 (23:52 +0000)
commit2795cf7422d4246a0b514975c8f7099271287466
treebb9b97cf58f098d2de8c49149b80a5eefa8de24b
parent74a8f118a2595479a94a8b7097680c5111d7273c
radv/rt: properly destroy radv_ray_tracing_lib_pipeline on error

Also return the correct error code.

Fixes: 4dafb69d61820c4a9b71856e62797b51f13df91c ('radv/rt: defer library_pipeline allocation')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22684>
src/amd/vulkan/radv_pipeline_rt.c