From fea953e6c2519560371b29303e0bd014963c14d9 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 15 Jul 2019 11:37:42 -0700 Subject: [PATCH] panfrost: Don't leak the blend CSO hash table Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_blend_cso.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_blend_cso.c b/src/gallium/drivers/panfrost/pan_blend_cso.c index cf26d7366ee..f2dafe062ce 100644 --- a/src/gallium/drivers/panfrost/pan_blend_cso.c +++ b/src/gallium/drivers/panfrost/pan_blend_cso.c @@ -124,7 +124,7 @@ panfrost_create_blend_state(struct pipe_context *pipe, /* Regardless if that works, we also need to initialize * the blend shaders */ - rt->shaders = _mesa_hash_table_u64_create(NULL); + rt->shaders = _mesa_hash_table_u64_create(so); } return so; @@ -152,8 +152,7 @@ static void panfrost_delete_blend_state(struct pipe_context *pipe, void *blend) { - /* TODO: leaks internally? */ - + /* TODO: Free shader binary? */ ralloc_free(blend); } -- 2.30.2