From 598f10eacca1488e580779fc9b6110ed9cba1f13 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 7 Mar 2019 15:09:42 +0000 Subject: [PATCH] r600: cast pointer to expected type Signed-off-by: Eric Engestrom Reviewed-By: Gert Wollny --- src/gallium/drivers/r600/evergreen_compute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 9085be4e2f3..1536210c7ef 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -464,8 +464,8 @@ 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); - pipe_resource_reference(&shader->kernel_param, NULL); + pipe_resource_reference((struct pipe_resource**)&shader->code_bo, NULL); + pipe_resource_reference((struct pipe_resource**)&shader->kernel_param, NULL); #endif r600_destroy_shader(&shader->bc); } -- 2.30.2