From ea1fff4416036066cff51826f95b4703d7211008 Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Thu, 3 May 2018 23:55:00 -0400 Subject: eg/compute: Drop reference on code_bo in destructor. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Vesely Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/r600/evergreen_compute.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/gallium/drivers/r600/evergreen_compute.c') 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); } -- cgit v1.2.3