mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
lavapipe: ref/unref pipeline layouts for pipeline creation
required by maintenance4 Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15378>
This commit is contained in:
parent
2f9976debc
commit
49cac7b33d
1 changed files with 4 additions and 0 deletions
|
|
@ -67,6 +67,8 @@ VKAPI_ATTR void VKAPI_CALL lvp_DestroyPipeline(
|
|||
for (unsigned i = 0; i < MESA_SHADER_STAGES; i++)
|
||||
ralloc_free(pipeline->pipeline_nir[i]);
|
||||
|
||||
lvp_pipeline_layout_unref(device, pipeline->layout);
|
||||
|
||||
ralloc_free(pipeline->mem_ctx);
|
||||
vk_object_base_finish(&pipeline->base);
|
||||
vk_free2(&device->vk.alloc, pAllocator, pipeline);
|
||||
|
|
@ -917,6 +919,7 @@ lvp_graphics_pipeline_init(struct lvp_pipeline *pipeline,
|
|||
alloc = &device->vk.alloc;
|
||||
pipeline->device = device;
|
||||
pipeline->layout = lvp_pipeline_layout_from_handle(pCreateInfo->layout);
|
||||
lvp_pipeline_layout_ref(pipeline->layout);
|
||||
pipeline->force_min_sample = false;
|
||||
|
||||
pipeline->mem_ctx = ralloc_context(NULL);
|
||||
|
|
@ -1105,6 +1108,7 @@ lvp_compute_pipeline_init(struct lvp_pipeline *pipeline,
|
|||
alloc = &device->vk.alloc;
|
||||
pipeline->device = device;
|
||||
pipeline->layout = lvp_pipeline_layout_from_handle(pCreateInfo->layout);
|
||||
lvp_pipeline_layout_ref(pipeline->layout);
|
||||
pipeline->force_min_sample = false;
|
||||
|
||||
pipeline->mem_ctx = ralloc_context(NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue