From: Jan Vesely Date: Fri, 4 May 2018 03:55:00 +0000 (-0400) Subject: eg/compute: Drop reference on code_bo in destructor. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea1fff4416036066cff51826f95b4703d7211008;p=mesa.git eg/compute: Drop reference on code_bo in destructor. Signed-off-by: Jan Vesely Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 6cb82122b16..21e965ede68 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -461,11 +461,9 @@ static void evergreen_delete_compute_state(struct pipe_context *ctx, void *state } else { #ifdef HAVE_OPENCL radeon_shader_binary_clean(&shader->binary); + pipe_resource_reference(&shader->code_bo, NULL); #endif r600_destroy_shader(&shader->bc); - - /* TODO destroy shader->code_bo, shader->const_bo - * we'll need something like r600_buffer_free */ } FREE(shader); }