r600/compute: Free compiled kernels when deleting compute state
v2: Remove unnecessary null pointer check CC: "10.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user