Module: Mesa Branch: main Commit: 0be6f8b5c17b80401238c89b078076de713dfae1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0be6f8b5c17b80401238c89b078076de713dfae1
Author: Matt Coster <[email protected]> Date: Thu May 18 11:33:08 2023 +0100 pvr: Correct error flow in pvr_compute_pipeline_compile() Fixes: dEQP-VK.api.object_management.alloc_callback_fail.compute_pipeline Signed-off-by: Matt Coster <[email protected]> Reviewed-by: Karmjit Mahil <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23130> --- src/imagination/vulkan/pvr_pipeline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/imagination/vulkan/pvr_pipeline.c b/src/imagination/vulkan/pvr_pipeline.c index 2ae9ab34724..e6e82bbe951 100644 --- a/src/imagination/vulkan/pvr_pipeline.c +++ b/src/imagination/vulkan/pvr_pipeline.c @@ -1331,7 +1331,9 @@ err_destroy_compute_program: &compute_pipeline->primary_program_info); err_free_descriptor_program: - pvr_bo_suballoc_free(compute_pipeline->descriptor_state.pds_code.pvr_bo); + pvr_pds_descriptor_program_destroy(device, + allocator, + &compute_pipeline->descriptor_state); err_free_shader: pvr_bo_suballoc_free(compute_pipeline->shader_state.bo);
