From 3cdbd79dccdcf2aae7155f27add58d09fca59c52 Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Mon, 7 May 2018 22:54:09 -0400 Subject: eg/compute: Drop reference to kernel_param bo in destructor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC: Signed-off-by: Jan Vesely Reviewed-by: Marek Olšák (cherry picked from commit a9e4be9212868f619ac492aaf86b0aa68d4395c4) --- src/gallium/drivers/r600/evergreen_compute.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium') diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 21e965ede68..bd3d8934b3c 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -462,6 +462,7 @@ static void evergreen_delete_compute_state(struct pipe_context *ctx, void *state #ifdef HAVE_OPENCL radeon_shader_binary_clean(&shader->binary); pipe_resource_reference(&shader->code_bo, NULL); + pipe_resource_reference(&shader->kernel_param, NULL); #endif r600_destroy_shader(&shader->bc); } -- cgit v1.2.3