From: Alyssa Rosenzweig Date: Tue, 18 Aug 2020 12:41:37 +0000 (-0400) Subject: panfrost: Free batch->dependencies X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cb47f8eea0af26b9573ac973ae3d9852cbabe6a;p=mesa.git panfrost: Free batch->dependencies On glmark2-es2 -bterrain: 594.05KB leaked over 9282 calls from: panfrost_batch_update_bo_access at ../src/gallium/drivers/panfrost/pan_job.c:462 in /home/alyssa/rockchip_dri.so panfrost_batch_add_bo at ../src/gallium/drivers/panfrost/pan_job.c:560 panfrost_batch_add_bo at ../src/gallium/drivers/panfrost/pan_job.c:519 in /home/alyssa/rockchip_dri.so panfrost_batch_add_resource_bos at ../src/gallium/drivers/panfrost/pan_job.c:569 panfrost_batch_add_fbo_bos at ../src/gallium/drivers/panfrost/pan_job.c:588 in /home/alyssa/rockchip_dri.so panfrost_create_batch at ../src/gallium/drivers/panfrost/pan_job.c:126 Signed-off-by: Alyssa Rosenzweig Cc: mesa-stable Reviewed-by: Tomeu Vizoso Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index 115afade0b6..c349a058270 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -187,6 +187,8 @@ panfrost_free_batch(struct panfrost_batch *batch) panfrost_batch_fence_unreference(*dep); } + util_dynarray_fini(&batch->dependencies); + /* The out_sync fence lifetime is different from the the batch one * since other batches might want to wait on a fence of already * submitted/signaled batch. All we need to do here is make sure the