projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1ad1be
)
llvmpipo/nir: free compute shader NIR
author
Dave Airlie
<airlied@redhat.com>
Tue, 5 May 2020 06:03:34 +0000
(16:03 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 5 May 2020 19:11:19 +0000
(
05:11
+1000)
I forgot this in the last round.
Fixes:
18f896e55d96
(llvmpipe: add initial nir support)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4899>
src/gallium/drivers/llvmpipe/lp_state_cs.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_state_cs.c
b/src/gallium/drivers/llvmpipe/lp_state_cs.c
index
b57e106
..
ff767a2
100644
(file)
--- 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);
}