summaryrefslogtreecommitdiffstats
path: root/src/broadcom
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-03-12 14:56:57 -0700
committerEric Anholt <[email protected]>2019-03-12 16:15:40 -0700
commit0c874c18cd07539f56fede272a24b76f2946716f (patch)
tree227e6296b0ac4737a985567e41a550924feea591 /src/broadcom
parentacfd88204e886e671da97b895fd2d1ee39b61256 (diff)
v3d: Fix leak of the mem_ctx after the DAG refactor.
Noticed while trying to get a CTS run again. Fixes: 33886474d646 ("v3d: Use the DAG datastructure for QPU instruction scheduling.")
Diffstat (limited to 'src/broadcom')
-rw-r--r--src/broadcom/compiler/qpu_schedule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/broadcom/compiler/qpu_schedule.c b/src/broadcom/compiler/qpu_schedule.c
index c7c12063816..d275940c136 100644
--- a/src/broadcom/compiler/qpu_schedule.c
+++ b/src/broadcom/compiler/qpu_schedule.c
@@ -1338,7 +1338,7 @@ qpu_schedule_instructions_block(struct v3d_compile *c,
uint32_t *next_uniform)
{
void *mem_ctx = ralloc_context(NULL);
- scoreboard->dag = dag_create(NULL);
+ scoreboard->dag = dag_create(mem_ctx);
struct list_head setup_list;
list_inithead(&setup_list);
@@ -1366,7 +1366,7 @@ qpu_schedule_instructions_block(struct v3d_compile *c,
orig_uniform_data,
next_uniform);
- ralloc_free(scoreboard->dag);
+ ralloc_free(mem_ctx);
scoreboard->dag = NULL;
return cycles;