nvk: Don't free the NIR in nvk_compile_nir
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:52 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:56 +0000 (21:31 +0000)
commit782d376363368dfe6d761898fe35698666c0a88e
tree171a64b6f56392ee7940845c270e35d70a41e315
parentffc6c3afafa11bd862bdf13e464f8ed82aba3a6c
nvk: Don't free the NIR in nvk_compile_nir

It's a layering violation and the NIR is currently leaked if we the
compile fails.  It's better to make the caller clean up.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_compute_pipeline.c
src/nouveau/vulkan/nvk_shader.c