Browse Source

r600: cast pointer to expected type

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
tags/19.1-branchpoint
Eric Engestrom 6 years ago
parent
commit
598f10eacc
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/gallium/drivers/r600/evergreen_compute.c

+ 2
- 2
src/gallium/drivers/r600/evergreen_compute.c View 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);
}

Loading…
Cancel
Save