diff options
author | Dave Airlie <[email protected]> | 2020-05-05 16:03:34 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2020-05-06 05:11:19 +1000 |
commit | 870b6a60509e2dd547dc75fee9290224ad306779 (patch) | |
tree | d5e2c8e5d25143a3cff267ef8dad9b8dea2c57cf /src/gallium/drivers | |
parent | d1ad1be35a5ba609fd533f2a808a473a067028d8 (diff) |
llvmpipo/nir: free compute shader NIR
I forgot this in the last round.
Fixes: 18f896e55d96 (llvmpipe: add initial nir support)
Reviewed-by: Roland Scheidegger <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4899>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_cs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_cs.c b/src/gallium/drivers/llvmpipe/lp_state_cs.c index b57e1068a06..ff767a2a860 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_cs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_cs.c @@ -523,6 +523,8 @@ llvmpipe_delete_compute_state(struct pipe_context *pipe, llvmpipe_remove_cs_shader_variant(llvmpipe, li->base); li = next; } + if (shader->base.ir.nir) + ralloc_free(shader->base.ir.nir); tgsi_free_tokens(shader->base.tokens); FREE(shader); } |