From: Roland Scheidegger Date: Mon, 18 Jun 2012 18:37:34 +0000 (+0200) Subject: llvmpipe: destroy setup variants on context destruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43ccded1e17147c0b705152add11875b560b1c43;p=mesa.git llvmpipe: destroy setup variants on context destruction lp_delete_setup_variants() used to be called in garbage collection, but this no longer exists hence the setup shaders never got freed. Reviewed-by: José Fonseca --- diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c index 7f92a5fe5a7..9e4c7d6734e 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.c +++ b/src/gallium/drivers/llvmpipe/lp_context.c @@ -126,6 +126,8 @@ static void llvmpipe_destroy( struct pipe_context *pipe ) pipe_resource_reference(&llvmpipe->vertex_buffer[i].buffer, NULL); } + lp_delete_setup_variants(llvmpipe); + gallivm_destroy(llvmpipe->gallivm); align_free( llvmpipe );