r600/compute: Free compiled kernels when deleting compute state
authorAaron Watry <awatry@gmail.com>
Thu, 12 Dec 2013 22:35:54 +0000 (16:35 -0600)
committerAaron Watry <awatry@gmail.com>
Mon, 23 Dec 2013 13:24:50 +0000 (07:24 -0600)
v2: Remove unnecessary null pointer check

CC: "10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/r600/evergreen_compute.c

index 0d722b6cad6b2a9856a8ec66de19abb7c268b622..c518d865f7cea69e11fc77a411beca87dacae929 100644 (file)
@@ -238,6 +238,8 @@ void evergreen_delete_compute_state(struct pipe_context *ctx, void* state)
        if (!shader)
                return;
 
+       FREE(shader->kernels);
+
 #ifdef HAVE_OPENCL
        if (shader->llvm_ctx){
                LLVMContextDispose(shader->llvm_ctx);