mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
zink: stop leaking push descriptor templates
templates[ZINK_DESCRIPTOR_TYPE_UNIFORMS] needs to be deleted, which requires a larger iterator cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20867>
This commit is contained in:
parent
01d2e7afce
commit
dd733034aa
1 changed files with 2 additions and 0 deletions
|
|
@ -681,6 +681,8 @@ zink_descriptor_program_deinit(struct zink_screen *screen, struct zink_program *
|
|||
pg->dd.pool_key[i]->use_count--;
|
||||
pg->dd.pool_key[i] = NULL;
|
||||
}
|
||||
}
|
||||
for (unsigned i = 0; pg->num_dsl && i < ZINK_DESCRIPTOR_NON_BINDLESS_TYPES; i++) {
|
||||
if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_LAZY && pg->dd.templates[i]) {
|
||||
VKSCR(DestroyDescriptorUpdateTemplate)(screen->dev, pg->dd.templates[i], NULL);
|
||||
pg->dd.templates[i] = VK_NULL_HANDLE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue