mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
eg/compute: Drop reference on code_bo in destructor.
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
(cherry picked from commit ea1fff4416)
This commit is contained in:
parent
817414b00b
commit
795fffc2df
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue