r600: cast pointer to expected type
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 7 Mar 2019 15:09:42 +0000 (15:09 +0000)
committerEric Engestrom <eric@engestrom.ch>
Fri, 8 Mar 2019 16:24:06 +0000 (16:24 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/r600/evergreen_compute.c

index 9085be4e2f33c0077b741bdafc032795e015110d..1536210c7ef3e6bce9a36eb3b7fa0e1aed501a8d 100644 (file)
@@ -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);
        }