Noticed while trying to get a CTS run again.
Fixes: 33886474d646 ("v3d: Use the DAG datastructure for QPU instruction scheduling.")
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);
orig_uniform_data,
next_uniform);
- ralloc_free(scoreboard->dag);
+ ralloc_free(mem_ctx);
scoreboard->dag = NULL;
return cycles;