projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ba73e
)
eg/compute: Drop reference on code_bo in destructor.
author
Jan Vesely
<jan.vesely@rutgers.edu>
Fri, 4 May 2018 03:55:00 +0000
(23:55 -0400)
committer
Jan Vesely
<jan.vesely@rutgers.edu>
Mon, 7 May 2018 19:04:03 +0000
(15:04 -0400)
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/evergreen_compute.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/evergreen_compute.c
b/src/gallium/drivers/r600/evergreen_compute.c
index
6cb8212
..
21e965e
100644
(file)
--- 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);
}