summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2012-06-18 20:37:34 +0200
committerJosé Fonseca <jfonseca@vmware.com>2012-07-16 19:00:54 +0100
commit43ccded1e17147c0b705152add11875b560b1c43 (patch)
treed718f2fccb47db581533ec7916cf27ea610654e8 /src/gallium
parent8684ffc141ed024ab1d42fcba31d8517288fac40 (diff)
downloadexternal_mesa3d-43ccded1e17147c0b705152add11875b560b1c43.zip
external_mesa3d-43ccded1e17147c0b705152add11875b560b1c43.tar.gz
external_mesa3d-43ccded1e17147c0b705152add11875b560b1c43.tar.bz2
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 <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c
index 7f92a5f..9e4c7d6 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 );