diff options
author | Aaron Watry <[email protected]> | 2013-12-12 16:35:54 -0600 |
---|---|---|
committer | Aaron Watry <[email protected]> | 2013-12-23 07:24:50 -0600 |
commit | e19717d075bd26c16e12564ed578ff519a5ce57a (patch) | |
tree | 4b3050cf0a8ef5aeca680b1fbee996228939a1d2 /src/gallium | |
parent | 8c9a9205d96b5ac0718218bfa952a5b4b6ad939c (diff) |
r600/compute: Free compiled kernels when deleting compute state
v2: Remove unnecessary null pointer check
CC: "10.0" <[email protected]>
Diffstat (limited to 'src/gallium')
-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 0d722b6cad6..c518d865f7c 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); |