mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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:
parent
b33792b794
commit
4600dbc6cc
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue