summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_job.c
diff options
context:
space:
mode:
authorTomeu Vizoso <[email protected]>2019-06-18 14:24:57 +0200
committerTomeu Vizoso <[email protected]>2019-06-19 07:34:15 +0200
commit0fcf73bc2d4dc292895ef8930f4f445d933b1630 (patch)
tree3ea293a414d1b2b89d41cfe2c7a321ee0d90a441 /src/gallium/drivers/panfrost/pan_job.c
parent5743a36b2b32a91eaf82c8d109932fe4fea01233 (diff)
panfrost: Move to use ralloc for some allocations
We have some serious leaks, so plug some and also move to ralloc to limit the lifetime of some objects to that of their parent. Lots more such work to do. For some reason, this fixes: dEQP-GLES2.functional.lifetime.attach.deleted_output.texture_framebuffer Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_job.c')
-rw-r--r--src/gallium/drivers/panfrost/pan_job.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c
index 1882cc4faf3..96f05c66354 100644
--- a/src/gallium/drivers/panfrost/pan_job.c
+++ b/src/gallium/drivers/panfrost/pan_job.c
@@ -269,13 +269,11 @@ panfrost_job_hash(const void *key)
void
panfrost_job_init(struct panfrost_context *ctx)
{
- /* TODO: Don't leak */
- ctx->jobs = _mesa_hash_table_create(NULL,
+ ctx->jobs = _mesa_hash_table_create(ctx,
panfrost_job_hash,
panfrost_job_compare);
- ctx->write_jobs = _mesa_hash_table_create(NULL,
+ ctx->write_jobs = _mesa_hash_table_create(ctx,
_mesa_hash_pointer,
_mesa_key_pointer_equal);
-
}