diff options
author | Aaron Watry <[email protected]> | 2013-12-12 16:35:54 -0600 |
---|---|---|
committer | Carl Worth <[email protected]> | 2014-01-02 15:57:41 -0800 |
commit | 2a20bf3ed26a6c0641f9b9e0ea1290fc70598449 (patch) | |
tree | 8a999645ffbb5aba9c767bb6f669e238413137f2 | |
parent | 87cdd13324a070aa36424bead9dc2c053da9c301 (diff) |
r600/compute: Free compiled kernels when deleting compute state
v2: Remove unnecessary null pointer check
CC: "10.0" <[email protected]>
(cherry picked from commit e19717d075bd26c16e12564ed578ff519a5ce57a)
-rw-r--r-- | src/gallium/drivers/r600/evergreen_compute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index f0f537cd8e2..caac59949d0 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -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); |