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:

committed by
Marge Bot

parent
01d2e7afce
commit
dd733034aa
@@ -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]->use_count--;
|
||||||
pg->dd.pool_key[i] = NULL;
|
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]) {
|
if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_LAZY && pg->dd.templates[i]) {
|
||||||
VKSCR(DestroyDescriptorUpdateTemplate)(screen->dev, pg->dd.templates[i], NULL);
|
VKSCR(DestroyDescriptorUpdateTemplate)(screen->dev, pg->dd.templates[i], NULL);
|
||||||
pg->dd.templates[i] = VK_NULL_HANDLE;
|
pg->dd.templates[i] = VK_NULL_HANDLE;
|
||||||
|
Reference in New Issue
Block a user