summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2018-05-03 23:55:00 -0400
committerDylan Baker <[email protected]>2018-05-08 10:55:33 -0700
commit795fffc2dfcd9b74ed126efebd7246c8ebd123d9 (patch)
tree543c54785c7aa1a3ca96c8774218146623bed7aa /src/gallium
parent817414b00b4aa95268e7a4f478b8cb708ea2b030 (diff)
eg/compute: Drop reference on code_bo in destructor.
Signed-off-by: Jan Vesely <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> (cherry picked from commit ea1fff4416036066cff51826f95b4703d7211008)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/evergreen_compute.c4
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);
}