diff options
author | Jan Vesely <[email protected]> | 2018-05-03 23:55:00 -0400 |
---|---|---|
committer | Jan Vesely <[email protected]> | 2018-05-07 15:04:03 -0400 |
commit | ea1fff4416036066cff51826f95b4703d7211008 (patch) | |
tree | 94f103ac78a2e099bd45be185b9f2745474d6242 /src | |
parent | 54ba73ef102f7b9085922686bb31719539e0dc3c (diff) |
eg/compute: Drop reference on code_bo in destructor.
Signed-off-by: Jan Vesely <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_compute.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 6cb82122b16..21e965ede68 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -461,11 +461,9 @@ 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); #endif r600_destroy_shader(&shader->bc); - - /* TODO destroy shader->code_bo, shader->const_bo - * we'll need something like r600_buffer_free */ } FREE(shader); } |