mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
zink: call zink_shader_free for compute shaders
ensure everything is deallocated consistently Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22577>
This commit is contained in:
parent
ee8c1a44c1
commit
f2f6012f4a
1 changed files with 1 additions and 3 deletions
|
|
@ -1492,9 +1492,7 @@ zink_destroy_compute_program(struct zink_screen *screen,
|
|||
assert(comp->shader);
|
||||
assert(!comp->shader->spirv);
|
||||
|
||||
_mesa_set_destroy(comp->shader->programs, NULL);
|
||||
blob_finish(&comp->shader->blob);
|
||||
ralloc_free(comp->shader);
|
||||
zink_shader_free(screen, comp->shader);
|
||||
|
||||
destroy_shader_cache(screen, &comp->shader_cache[0]);
|
||||
destroy_shader_cache(screen, &comp->shader_cache[1]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue