summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2012-06-18 20:37:34 +0200
committerJosé Fonseca <[email protected]>2012-07-16 19:00:54 +0100
commit43ccded1e17147c0b705152add11875b560b1c43 (patch)
treed718f2fccb47db581533ec7916cf27ea610654e8 /src/gallium/drivers
parent8684ffc141ed024ab1d42fcba31d8517288fac40 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-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 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 );