llvmpipe: Fix leak of CS local memory with 0 threads.
Fixes: bde08ce4d7
("llvmpipe: handle compute shader launch with 0 threads")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12724>
This commit is contained in:
parent
dee8b50cad
commit
a83a2b980c
|
@ -121,6 +121,7 @@ lp_cs_tpool_queue_task(struct lp_cs_tpool *pool,
|
|||
for (unsigned t = 0; t < num_iters; t++) {
|
||||
work(data, t, &lmem);
|
||||
}
|
||||
FREE(lmem.local_mem_ptr);
|
||||
return NULL;
|
||||
}
|
||||
task = CALLOC_STRUCT(lp_cs_tpool_task);
|
||||
|
|
Loading…
Reference in New Issue