v3dv: don't leak host memory allocated for shader variants

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga 2020-04-23 10:30:54 +02:00 committed by Marge Bot
parent 77bccfd828
commit 89e426a4fb

View file

@ -99,7 +99,7 @@ destroy_pipeline_stage(struct v3dv_device *device,
if (variant->assembly_bo) {
v3dv_bo_free(device, variant->assembly_bo);
variant->assembly_bo = NULL;
vk_free2(&device->alloc, pAllocator, variant);
}
}