panvk: free preload-shaders after compiling

These shaders are created using nir_builder_init_simple_shader(), which
allocates using a NULL ralloc-parent, so ralloc_free should be the right
function to free them with.

Fixes: 0bc3502ca3 ("panvk: Implement a custom FB preload logic")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32486>
This commit is contained in:
Erik Faye-Lund 2024-12-04 16:15:04 +01:00 committed by Marge Bot
parent 43738a9a94
commit 9f69f7a66d

View file

@ -180,6 +180,8 @@ get_preload_shader(struct panvk_device *dev,
VkResult result = panvk_per_arch(create_internal_shader)(
dev, nir, &inputs, &shader);
ralloc_free(nir);
if (result != VK_SUCCESS)
return result;