mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 07:20:16 +01:00
llvmpipe/nir: free the nir shader
Fixes: 18f896e55d (llvmpipe: add initial nir support)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4563>
This commit is contained in:
parent
cb0a2b3df6
commit
befe2ff3a6
1 changed files with 2 additions and 0 deletions
|
|
@ -3138,6 +3138,8 @@ llvmpipe_delete_fs_state(struct pipe_context *pipe, void *fs)
|
|||
/* Delete draw module's data */
|
||||
draw_delete_fragment_shader(llvmpipe->draw, shader->draw_data);
|
||||
|
||||
if (shader->base.ir.nir)
|
||||
ralloc_free(shader->base.ir.nir);
|
||||
assert(shader->variants_cached == 0);
|
||||
FREE((void *) shader->base.tokens);
|
||||
FREE(shader);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue