Module: Mesa
Branch: master
Commit: ea1fff4416036066cff51826f95b4703d7211008
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea1fff4416036066cff51826f95b4703d7211008

Author: Jan Vesely <jan.ves...@rutgers.edu>
Date:   Thu May  3 23:55:00 2018 -0400

eg/compute: Drop reference on code_bo in destructor.

Signed-off-by: Jan Vesely <jan.ves...@rutgers.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haeh...@amd.com>

---

 src/gallium/drivers/r600/evergreen_compute.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/gallium/drivers/r600/evergreen_compute.c 
b/src/gallium/drivers/r600/evergreen_compute.c
index 6cb82122b1..21e965ede6 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);
 }

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to