mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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 <alyssa.rosenzweig@collabora.com>
Cc: mesa-stable
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6373>
(cherry picked from commit 1cb47f8eea)
This commit is contained in:
parent
83c32b9d90
commit
9a15390174
2 changed files with 3 additions and 1 deletions
|
|
@ -535,7 +535,7 @@
|
|||
"description": "panfrost: Free batch->dependencies",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -177,6 +177,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue