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>
This commit is contained in:
committed by
Marge Bot
parent
b33792b794
commit
4600dbc6cc
@@ -3001,6 +3001,8 @@ tu_compute_pipeline_create(VkDevice device,
|
||||
|
||||
tu6_emit_load_state(pipeline, true);
|
||||
|
||||
tu_shader_destroy(dev, shader, pAllocator);
|
||||
|
||||
*pPipeline = tu_pipeline_to_handle(pipeline);
|
||||
return VK_SUCCESS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user