From: Eric Engestrom Date: Thu, 7 Mar 2019 15:09:42 +0000 (+0000) Subject: r600: cast pointer to expected type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=598f10eacca1488e580779fc9b6110ed9cba1f13;p=mesa.git r600: cast pointer to expected type Signed-off-by: Eric Engestrom Reviewed-By: Gert Wollny --- 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); }